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

Guided Exercise: Volume Mounting

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 

3 Replies
biltonbilmes
Flight Engineer
Flight Engineer
  • 62 Views

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

biltonbilmes
Flight Engineer
Flight Engineer
  • 59 Views

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

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

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