Chapter 21: Containers with Podman
Podman containers quiz
Ten questions across the whole chapter. Each answer explains why. Aim for eight before moving on to chapter 22.
- Which command runs a one-off container that is removed afterwards?
- Why can student not see an image that sudo podman pulled?
- Which option publishes container port 8080 on host port 8081?
- A bind-mounted directory is unreadable from a container because of SELinux. Which option fixes it?
- What does COPY do in a Containerfile?
- Which file defines a rootless container service with Quadlet?
- A rootless web service must start after a reboot with nobody logged in. What is needed?
- podman run fails with "Address already in use" on port 8080. What is the likely cause?
- How do you pin an image so that a build always starts from the same content?
- A container exits at once after podman run -d. What do you try first?