Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Docker contexts #4775

Merged
merged 2 commits into from
Aug 26, 2021
Merged

Update to Docker contexts #4775

merged 2 commits into from
Aug 26, 2021

Conversation

bamurtaugh
Copy link
Member

Docker contexts seem to be the newer concept compared to Docker Machine, so updating the documentation according to discussion

Fixes microsoft/vscode-remote-release#5403


Use the following command with the appropriate values to set up Docker on a remote SSH host. Note that you can use alternate [Docker Machine drivers](https://docs.docker.com/machine/drivers/) instead if you prefer.
You create new contexts with `docker context create`, specifying a name and endpoint configuration (cluster or single nodes): `docker context create my-context`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creating a context requires additional parameters. I'd link to Docker's documentation to avoid the complexity here: https://docs.docker.com/engine/context/working-with-contexts/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense - added a hyperlink at the beginning of the section and removed some of the complexity here.

docker-machine env give-it-a-name-here | Invoke-Expression
code
```
Without the Docker extension, Remote-Containers will use the current context.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repeats the last sentence.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Removed last sentence.

@bamurtaugh
Copy link
Member Author

Thanks for the review @chrmarti, great feedback! Addressed the comments.

@gregvanl since Christof approved, I think this is ready for your review / merge.

@gregvanl gregvanl merged commit 108056c into main Aug 26, 2021
@bamurtaugh bamurtaugh deleted the bamurtaugh/docker-context branch October 28, 2021 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker-machine is deprecated
3 participants