Skip to content

Use podman to run containers

Outcomes

You should be able to: - Understand how to run containers with podman - Understand how to run containers with podman-compose - Understand how to run containers with podman-pod

Outline

  1. Run a container with podman using the ubi image (the ubi image is a minimal image based on Red Hat Universal Base Image)
podman run --rm -it ubi bash

Notice the use of the --rm flag. This flag will remove the container once it exits. Also, note the use of the -it flags. These flags are used to run the container interactively and to allocate a pseudo-TTY.