LinuxCommandLibrary

podman-ps

List containers and their status

TLDR

List running containers

$ podman ps
copy
List all containers
$ podman ps -a
copy
Show only IDs
$ podman ps -q
copy
Custom format output
$ podman ps --format "{{.Names}} {{.Status}}"
copy
Show latest container
$ podman ps -l
copy

SYNOPSIS

podman ps [options]

DESCRIPTION

podman ps lists containers managed by Podman, showing container ID, image, command, creation time, status, ports, and names. By default, only running containers are shown; use -a to include stopped containers.
The --format option accepts Go templates for custom output formatting. Use -q for just container IDs (useful for scripting), -l for the most recently created container, and -n to limit to the last N containers. Docker ps compatible.

PARAMETERS

-a, --all

Show all containers.
-q, --quiet
Only show IDs.
-l, --latest
Show latest container.
--format FORMAT
Output format template.
-n N
Show last N containers.
--no-trunc
Don't truncate output.

CAVEATS

Only shows podman containers. Docker-compatible output.

HISTORY

podman ps provides container listing functionality.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community