Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

podman

The commands used in podman can also be used in docker. In fact, you could make an alias docker=podman and you won't have big problems.

Listing

List all containers

podman ps -a 

List images

podman image list

getting an image

podman pull $imagename

Creating an interactive container

podman create -ti --name $name $image

Starting the container

podman start $containerid

Attaching and setting interactive mode on start

podman start $containerid -ai

Attaching a container

podman attach $containername

detaching can be made with the sequence <Ctrl-p> <Ctrl-q>

Stopping the container

podman stop $containername

This could take a while. You can set a timeout with -t

Getting information of the image/container

podman inspect $name