-
Notifications
You must be signed in to change notification settings - Fork 2.4k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Permission denied when trying to use the /var/run/docker.sock
file generated by the mac-helper
#13723
Comments
@baude PTAL |
I have a similar issue on podman 4.0.3 on Mac (m1). This is simulating how testcontainers starts the ryuk container.
Even with
Another more direct way to test it.
podman was setup using:
|
Someone may correct me, but in my recent experience:
Means that you don't have
Is caused by SELinux, see coreos/fedora-coreos-tracker#585 for details. As a proper solution maybe |
According to this accessing @aaronjwhiteside I've had success with both your @rafaelfranca I'm not familiar with VSCode Remote container extension and the Also, I don't believe the |
You do not need to run --privileged you could disable SELinux for the container. podman run --security-opt label:disabled |
I am moving this to discussion, since I do not believe Podman is doing anything incorrect here. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When trying to use the VSCode Remote container extension with podman, one of the commands that is executed tries to use the
/var/run/docker.sock
file to mount a volume. That file has different file permission than the original podman socket it is being liked to:This is causing the command to fail with permission denied. I believe that symlink should have the same permissions as the original file.
Steps to reproduce the issue:
podman run -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap
with any valid container.Describe the results you received:
Command failed: podman run -d --mount type=volume,src=rails-main-ecb592c6d095efde43d1d0e49d27304d,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[953 ms] Error: statfs /var/run/docker.sock: permission denied
Describe the results you expected:
Command executed with success
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: