-
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
have podman env or similar command to output setup that makes other docker clients work #11422
Comments
It's possible to view the current sockets, using Ultimately this needs to be paired with the other feature, to create a ssh tunnel. But one could add a generic feature. to print both DOCKER_HOST and CONTAINER_HOST ? At the moment, it outputs JSON: ( [
{
"Name": "podman-machine-default*",
"URI": "ssh://core@localhost:33475/run/user/1000/podman/podman.sock",
"Identity": "/home/anders/.ssh/podman-machine-default"
},
{
"Name": "podman-machine-default-root",
"URI": "ssh://root@localhost:33475/run/podman/podman.sock",
"Identity": "/home/anders/.ssh/podman-machine-default"
}
] Currently there is no way to provide the ssh key or even the socket path to Docker, though...
So one has to work around it, using |
FYI I have a WIP proposal that introduces this and ssh tunneling here: |
@n1hility : does your PR add another "connection" for the temporary unix socket, or only the env vars ? I don't have anything against just using the environment variables myself, but they were "replaced" earlier. I suppose if you only use Docker, you are stuck with DOCKER_HOST (and workarounds for the SSH key) Then something like |
A friendly reminder that this issue had no activity for 30 days. |
@n1hility @afbjorklund What is going on with this? |
A friendly reminder that this issue had no activity for 30 days. |
Still relevant |
A friendly reminder that this issue had no activity for 30 days. |
I'm a little turned around on this one @maxandersen ... what exactly are you asking for? are you wanting to use a podman frontend and a docker backend? |
after chatting with @maxandersen, he would like to also have an additional docker-env command like minikube or the old docker machine in case the output of |
ill do a follow-up PR for that for a later release |
Both docker and podman seem to be switching to magic config files, instead of using environment variables. DOCKER_HOST vs. docker context ls CONTAINER_HOST vs. podman system connection list Currently docker does list the environment context, but podman does not list the environment connection. $ docker context ls
NAME DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR
default * Current DOCKER_HOST based configuration unix:///var/run/docker.sock swarm
lima unix:///home/anders/.lima/docker/sock/docker.sock $ podman system connection list
Name URI Identity Default
lima unix:///home/anders/.lima/podman/sock/podman.sock false
|
The help text seems to have a typo/syntax error in it, missing the
But it's a valid configuration (for Podman), so it's just not an URL. Probably not important. |
But magic context files is more for global config, right ? It doesn't let you isolate / reset configuration for just one shell ? |
Right, that is why I don't like them myself... But
No environment variables needed to set. The default socket changed, everywhere.
|
We have talked about adding a podman context command to match the Docker one for certain types of scripts. Perhaps hidden from users. podman machine env would probably be acceptable Perhaps with a --docker option or maybe just print out the DOCKER_HOST=/PATH |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
I'm coming to podman to have a way to run containers but still use it with the larger ecosystem
that know how to connect to docker demon (i.e. test containers etc.)
They don't "just work" thus I assume there is some environment I need to setup - should/could podman provide a command like
podman env
that would print out out the necessary config ?Describe the results you received:
or similar.
Just some hint/setup to enable docker ce migrations.
The text was updated successfully, but these errors were encountered: