-
Story
-
Resolution: Done
-
Minor
-
DO188 - RHOSCP4.10-en-1-20220923
-
None
-
4
-
ROLE
-
en-US (English)
URL: https://rol.redhat.com/rol/app/courses/do188-4.10/pages/ch04s03
Reporter RHNID:
Section: 3 - Build Images with Advanced Containerfile Instructions
Language: en-US (English)
Workaround:
Description: observation made by external customer on S-NOW ticket. RHT1884912
" Description: I believe there is an incorrect statement in the training material for "Red Hat OpenShift Developer I: Introduction to Containers with Podman" (DO188). The section in question is under "Build Images with Advance Containerfile Instructions" (https://rol.redhat.com/rol/app/courses/do188-4.10/pages/ch04s03). Under section "The Volume Instruction", the following statement is made: "Podman ties the lifecycle of the anonymous volume to the lifecycle of the container. The volume is created and removed with the container." If a volume is declared in the Containerfile, then an anonymous volume will be created when a container is instantiated. However, stopping and/or removing the container does not result in the anonymous volume being removed. This can be verified: [rsykes@fedora ~]$ podman volume ls [rsykes@fedora ~]$ [rsykes@fedora ~]$ podman run -d --name nexus docker.io/sonatype/nexus:latest 8443ff556bc42884d0a99f7eb2f0a71f55256de65de85cdac4b2c600466280b6 [rsykes@fedora ~]$ podman volume ls DRIVER VOLUME NAME local e9300f5610ea577bd86e8129a6ed0b32fd52f37d5cdfd9432503bdd1395a0692 [rsykes@fedora ~]$ [rsykes@fedora ~]$ podman stop nexus nexus [rsykes@fedora ~]$ podman rm nexus nexus [rsykes@fedora ~]$ podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [rsykes@fedora ~]$ [rsykes@fedora ~]$ podman volume ls DRIVER VOLUME NAME local e9300f5610ea577bd86e8129a6ed0b32fd52f37d5cdfd9432503bdd1395a0692 [rsykes@fedora ~]$ "