cancel
Showing results for 
Search instead for 
Did you mean: 
biltonbilmes
Flight Engineer
Flight Engineer
  • 146 Views

Guided Exercise: Volume Mounting

Jump to solution

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 

1 Solution

Accepted Solutions
biltonbilmes
Flight Engineer
Flight Engineer
  • 66 Views

Because Podman manages the volume, you do not need to configure SELinux permissions.

View solution in original post

0 Kudos
4 Replies
biltonbilmes
Flight Engineer
Flight Engineer
  • 145 Views

Screenshot from 2025-02-05 13-48-00.png

biltonbilmes
Flight Engineer
Flight Engineer
  • 142 Views

I might be wrong, but i think there is typo in the manual. One must always use 'Z'

shura
Flight Engineer
Flight Engineer
  • 131 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

biltonbilmes
Flight Engineer
Flight Engineer
  • 67 Views

Because Podman manages the volume, you do not need to configure SELinux permissions.

0 Kudos
Join the discussion
You must log in to join this conversation.