-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: docker context support #1485
Comments
treuherz
added a commit
to treuherz/powerlevel10k
that referenced
this issue
Nov 17, 2021
Adds docker_context segment to show current docker context, with SHOW_ON_COMMAND and SHOW_DEFAULT parameters. Closes romkatv#1485
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a concept in Docker called contexts. With the use of contexts, we can work with different Docker Hosts simultaneously on the host by switching between them.
For example:
$ docker context list NAME TYPE DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR default * moby Current DOCKER_HOST based configuration unix:///var/run/docker.sock swarm desktop-linux moby unix:///Users/xxxx.xxx/.docker/run/docker.sock vm01 moby some description tcp://xxxxx:2376 vm02 moby some description tcp://xxxx:2376
We can easily switch between them by using the
use
command.It would be better to see the information on the Terminal to understand which Docker Context are we currently working on.
The text was updated successfully, but these errors were encountered: