commands.sh

podman

all

Simple management tool for pods, containers, and images. Podman provides a Docker-CLI comparable command-line. Simply put: `alias docker=podman`.

More info →

Options (3)

-a, --allboolean

List all containers (both running and stopped)

Example: podman ps {{[-a|--all]}}
boolean

Open a shell inside an already running container

Example: podman exec {{[-it|--interactive --tty]}} {{container_name}} {{sh}}
-f, --followboolean

Display the logs of one or more containers and follow log output

Example: podman logs {{[-f|--follow]}} {{container_name}} {{container_id}}

Examples (8)

List all containers (both running and stopped)

podman ps [-a|--all]

Create a container from an image, with a custom name

podman run --name container_name image

Start or stop an existing container

podman start|stop container_name

Pull an image from a registry (defaults to Docker Hub)

Display the list of already downloaded images

Open a shell inside an already running container

podman exec [-it|--interactive --tty] container_name sh

Remove a stopped container

podman rm container_name

Display the logs of one or more containers and follow log output

podman logs [-f|--follow] container_name container_id
made by @shridhargupta | data from tldr-pages