Empty mounted volumes (rootless) #9618
Labels
Good First Issue
This issue would be a good issue for a first time contributor to undertake.
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
Description
podman play kube
: In some cases volumes are mounted as empty folders into the containers.Steps to reproduce the issue:
SCENARIO 1:
/home/podman/testdir/testfile
podman play kube test.yaml
The folder is not empty.
SCENARIO 2:
Like SCENARIO 1 with a different path:
/data/testdir/
. /data is a mounted volume on the host:Dockerfile:
test.yaml:
After playing this the folder is empty:
SCENARIO 2B:
Remove the trailing slashes from
VOLUME
in the Dockerfile and all paths in test.yaml and it works again, the file is in the folder.SCENARIO 2C:
Remove the
VOLUME...
line from the Dockerfile but keep the trailing slashes in test.yaml and it works, too, the file is in the folder.Describe the results you received:
In some - I admit, hard to define - scenarios the folder is not mounted and we only get an empty volume that was created because of the
VOLUME
command in the Dockerfile (at least that's how I understand it).Describe the results you expected:
The volume should not be empty in any scenario.
Additional information you deem important (e.g. issue happens only occasionally):
SCENARIO 2 used to work with podman 2.1.1.
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?
Yes
The text was updated successfully, but these errors were encountered: