Mounting /run as a bind causes container to be unstartable #16305
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Trying to mount /run directory results in container being created but starting it fails with message bellow.
This happens regardless of running the command with these options:
--privileged
option--security-opt label=disable
Steps to reproduce the issue:
podman run -d --mount type=bind,src=/run/,target=/run/,shared busybox
podman start -l
(optionally to verify)Describe the results you received:
The container is created, inspect shows that /run is binded but the container cannot be started with message saying:
Error: unable to start container "<container-id>": crun: mount
/run/containers/storage/overlay-containers//userdata/run/secretsto
/run/secrets: No such file or directory: OCI runtime attempted to invoke a command that was not found
Describe the results you expected:
The container is created with /run binded and runs without problems.
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):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.):
Used virtual machine is deployed in Openstack cloud.
The text was updated successfully, but these errors were encountered: