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

feat: docker context support #1485

Open
developer-guy opened this issue Jul 14, 2021 · 0 comments · May be fixed by #1641
Open

feat: docker context support #1485

developer-guy opened this issue Jul 14, 2021 · 0 comments · May be fixed by #1641

Comments

@developer-guy
Copy link

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.

$ docker context use vm01
vm01

It would be better to see the information on the Terminal to understand which Docker Context are we currently working on.

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
@treuherz treuherz linked a pull request Nov 17, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant