Ex 188
Ex 188
Lesson 1: Introduction to
Containers
Lesson 1: Introduction to
Containers
Lesson 1: Introduction to
Containers and Kubernetes
Lesson 1: Introduction to
Containers and Kubernetes
Lesson 2: Running
Containers
Lesson 2: Running
Containers
Lesson 2: Running
Containers
Lesson 2: Running
Containers
Lesson 2: Running
Containers
Lesson 3: Managing
Container Images
Lesson 3: Managing
Container Images
Using skopeo
Using skopeo
Click to edit Master title style
• In addition to the podman command, skopeo provides the following
functionality
• inspect container images without pulling them
• copy images between registries
• convert image format
• sign images with OpenPGP keys
• Inspect images using skopeo inspect
docker://registry.access.redhat.com/ubi9/nginx-122
• After logging in, copy images using skopeo copy
docker://registry.access.redhat.com/ubi9/nginx-122
docker://docker.io/myuser/nginx-122
Click to edit Master title style
Lesson 3: Managing
Container Images
Lesson 3: Managing
Container Images
Lesson 3: Managing
Container Images
Lesson 3 Lab
Lesson 3 Lab: Managing Images
Click to edit Master title style
• Ensure you are logged in to all registries required to use podman
• Search for information about the ubi8 image
• Download the image you've found, and make a backup copy of it
• Investigate image contents
• Remove the image from the local image list
• Restore the backup you previously created
Click to edit Master title style
Lesson 4: Managing
Containers
Lesson 4: Managing
Containers
Lesson 4: Managing
Containers
Lesson 4: Managing
Containers
Lesson 4: Managing
Containers
Lesson 4: Managing
Containers
Using podman-compose
Understanding podman-compose
Click to edit Master title style
• podman-compose is used to automate the creation of multi-container
applications
• It is based on docker-compose and uses a compose.yaml file to specify
containers to be created as well as their properties
• As an alternative, podman can create Kubernetes compatible podman pods
Understanding compose.yaml
Click to edit Master title style
• In the compose.yaml different containers and their properties can be
defined
• After creating the yaml file, use podman-compose up to activate the
containers defined in the yaml file
Demo: Installing podman-compose
Click to edit Master title style
• sudo dnf install python3-pip
• pip3 install podman-compose
• git clone https://github.com/sandervanvugt/ex188
• cd ex188
• podman-compose up -d
• podman ps
• podman-compose logs -n -f