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

[Feature] Add Docker context-aware support #349

Open
CheyiLin opened this issue Feb 21, 2024 · 0 comments
Open

[Feature] Add Docker context-aware support #349

CheyiLin opened this issue Feb 21, 2024 · 0 comments

Comments

@CheyiLin
Copy link

Currently the only way to use ctop with Docker servers use non-default endpoint unix:///var/run/docker.sock is to set/override DOCKER_HOST environment variable.

For instance, with colima (refs):

export DOCKER_HOST=unix:///${HOME}/.colima/default/docker.sock

Would like to have Docker context-aware support so ctop can work with other Docker servers accordingly:

$ docker context list
NAME              DESCRIPTION                               DOCKER ENDPOINT                                     ERROR
colima *          colima                                    unix:///Users/*****/.colima/default/docker.sock
default           Current DOCKER_HOST based configuration   unix:///var/run/docker.sock
rancher-desktop   Rancher Desktop moby context              unix:///Users/*****/.rd/docker.sock

$ docker context show
colima

$ docker context use rancher-desktop
rancher-desktop
Current context is now "rancher-desktop"

Feedback is welcome!

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

No branches or pull requests

1 participant