Closed rhn closed 3 years ago
@rhn Could you try -v .:/mnt/sources:Z
instead of -v .:/mnt/sources:O
and check it its working.
"Z", "rw", "ro" don't cause that error, but I would stop before calling it "working", because of different semantics :)
:O
create a temporary overlay and you basically see the upper inside the container. Issue could be with the overlay driver itself does :O
works for you when you dont use it as workdir
?
Yes, the following works and /mnt/sources is populated:
podman run --rm -v .:/mnt/sources:O --attach=stdout,stderr --name=cirunn-861192 --workdir=/ fedora:33 bash
@rhn So i checked we have a bug in podman , overlay mount happens after the check for workdir
is completed.
@rhn Following patch should fix podman for your use-case https://github.com/containers/podman/pull/11353/files
Thanks!
/kind feature
I try to set workdir to be inside the volume I just set up, but it's rejected, even though podman could check for its existence.
Expected result: podman follows the volume mapping to determine whether the working directory is actually usable.
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? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes