Skip to main content

Podman basics

Check the image storage

podman images

Start a container based on an image ID. Get the ID from docker images.

podman run -it <your-image-id>

control-c will stop the container for all of the run commands.

Start an image based on a tag

podman run -it <image tag>

Start hello-world server

podman run -it quay.io/practicalopenshift/hello-world

Start the an app with port forwarding

podman run -it -p 8080:8080 quay.io/practicalopenshift/hello-world

Stopping Containers

Get running images

podman ps

Stop a running image. The container ID will be in the podman ps output.

podman kill <Container ID>