-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
support docker context #18521
Comments
Thanks for reaching out, @maxandersen! "This guide shows how contexts make it easy for a single Docker CLI to manage multiple Swarm clusters, multiple Kubernetes clusters, and multiple individual Docker nodes." (https://docs.docker.com/engine/context/working-with-contexts) The @containers/podman-maintainers WDYT? |
@maxandersen what output do you expect? If we new actually the command tools were using, we could fix this. If this is just a command line use, then I agree with @vrothberg hat perhaps we should fail. But if |
My comment from the PR is still valid (#15072 (review)). While we do not support swarm or connections to k8s clusters directly we can still output in the correct format. But I guess the important part here is how this is going to be used by such tools? If this only about context list, sure sounds easy enough to translate. But things like create or export/import does not sounds like something I would like to implement. |
I prefer |
A friendly reminder that this issue had no activity for 30 days. |
Sorry for missing the updates here. Docker context is supposed to be what testcontainers will use to adapt it to what setup there is available. I.e. docker context provide info on which configured docker setups are available. I.e. Podman could be one of possible many docker contexts. As is now |
What do you expect the output to look like? What specific command would you like implemented? |
A friendly reminder that this issue had no activity for 30 days. |
@maxandersen Could you answer the question? |
@rhatdan sorry. was on pto. I would expect i.e.:
vs
I can't deduce which local docker endpoint to have my tools, testcontainer etc. connect to in the different contexts when it comes to podman. maybe podman's contexts should show up as a context in straight up docker ? |
Is this for machine reading or human consumption? |
Do you want the output like:
|
I just arrived here after becoming confused about what In docker, the following are equivalent: docker context create moo ssh://[email protected]
docker context use moo
docker ps is equivalent to: ssh [email protected] docker ps This is apparently not what I am just one user, but I would prefer that if podman contexts are a completely different thing (system connections?), podman remove the "compatibility" interface that led me to believe the same mechanism was supported. |
Right now, they're hidden commands exclusively for compatibility with certain scripts that use the Docker CLI. Thus far, there has been little demand to do more, so we haven't gone beyond the bare minimum. It's also unlikely we'll ever get to 100% compatibility with On that note: Why we may not have CLI compatibility here, we expose the same functionality via the |
tldr; I think this may be one of those suffering in silence situations. you don't hear much because it doesn't work, so users just keep using docker (with all of it's rootless shortcomings 😢 ) and move on. Podman doesn't simulate the technical behavior of Podman $ podman context ls
Name URI Identity Default
podman context create docker2 --description "test" --docker "host=ssh://docker0:2375"
$ podman context ls
Name URI Identity Default
docker2 ssh://docker0:2375 true
$ docker context inspect
[]
$ docker context use docker2
$ docker context inspect
[] Docker
|
I thought this deserved a separate comment. While this may be true, it's also a replacement for the deprecated |
@h0tw1r3 interested in openging a PR to improve the support of docker context? |
Feature request description
podman context output != docker context output
meaning can't grab the needed values in a way that works on both docker or podman.
Have to do custom handling for podman.
would be great if not necessary.
Suggest potential solution
A clear and concise description of what you want to happen.
Have you considered any alternatives?
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: