-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
podman-remote returns invalid information to docker #9157
Comments
Thanks for reaching out! I find it equally cool and scary to run Docker-in-Podman and mount the Podman socket. Please don't do that in production though. Mounting the socket into the container, gives the container access to the host. In case of root, the container has full root access to host. I'll take a look at the issue. |
I am desperate 😁 … My use case is firing up a postgres database in an integration test. Still, as I am running rootless podman, I would expect that that docker client inside the podman container would only have as much access as the (rootless) podman instance outside of the container.
Thanks, I appreciate it. |
This is being fixed by #9048 |
@vrothberg |
podman run --rm -t --security-opt label=disable -v /run/user/1234/podman/podman.sock:/var/run/docker.sock:z docker.io/library/docker "docker" "run" "-e" "POSTGRES_PASSWORD=mysecretpassword" "-p" "5432:5432" "-d" "docker.io/library/postgres:12" this is starting a container with |
Don't use the :z on an label=disable. |
I think it would be great to have a "podman-in-podman" tutorial :) |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
Run podman-remote
Start docker container
Describe the results you received:
Describe the results you expected:
Information returned to docker should be compatible/valid for docker and not let the command fail, as the container is actually running.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
No
Additional environment details (AWS, VirtualBox, physical, etc.):
docker version
from inside podman:The text was updated successfully, but these errors were encountered: