
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 405 Views
Hallo Team,
I"m trying to understand what i"m missing in
Guided Exercise: Volume Mounting
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
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 325 Views
Because Podman manages the volume, you do not need to configure SELinux permissions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 404 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 401 Views
I might be wrong, but i think there is typo in the manual. One must always use 'Z'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 390 Views
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 326 Views
Because Podman manages the volume, you do not need to configure SELinux permissions.