forked from mrunalp/hooks
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
On Fedora 28 /tmp is mounted as shared.
When doing the move mount from /tmp/ocitmp.XXXX to the container overlay it fails with EINVAL.
Steps:
- Create a systemd-based container with bind mount. (The issue does not happen if the container does not have bind mounts)
podman create --name test_1 --entrypoint /sbin/init -v /volumes/test/home:/home:z --env container=podman fedora:28
podman start test_1
oci-systemd-hook[5870]: systemdhook <error>: 4962ee46e281: Failed to move mount /tmp/ocitmp.jIxv5p to /var/lib/containers/storage/overlay/5348f52873a3f5340e3461d5fb15cbf56acd48a73989673dfd0d1a9107e462b4/merged/run: Invalid argument
- Setting
/tmptoprivate, but makes this work twice but leads to other problems with containers+bind mounts namely cgroup debris: podman with bind mount leaving cgroup debris and prevents container restart containers/podman#730
Metadata
Metadata
Assignees
Labels
No labels