Hallo Team,
I"m trying to understand what i"m missing in
I see we mount the ~/www using Z option but it fails because of lack of directory listing permission.
Then we create the volume html-vol, import the tar file and then run without using Z. In my case it is show same error i.e. directory listing permission.
am I"m missing something. What is weird is, if I use Z option it works
podman run --name podman-container-name --rm -it -p 8000:8000 --volume vol-html:Z registry.ocp4.example.com:8443/redhattraining/podman-python-server
but without Z it fails
I might be wrong, but i think there is typo in the manual. One must always use 'Z'
Hello @biltonbilmes
1) Please, looks at man:
--volume, -v=[[SOURCE-VOLUME|HOST-DIR:]CONTAINER-DIR[:OPTIONS]]
2) Please, be accurate:
[student@workstation persisting-mounting]$ podman run -ti --rm --name podman-server -p 8000:8000 --volume html-vol:/server registry.ocp4.example.com:8443/redhattraining/podman-python-server
So you miss /server directory inside container. In case with ":Z" Z is correct option, but /server is missed, so Z take place of /server; in case you do not use ":Z" html-vol suppose to be directory inside container. Both cases are wrong.
Good luck
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.