LinuxCommandLibrary

podman

Daemonless container engine for OCI containers

TLDR

Run a container

$ podman run [image]
copy
List running containers
$ podman ps
copy
List all containers
$ podman ps -a
copy
Pull an image
$ podman pull [image]
copy
Build from Dockerfile
$ podman build -t [tag] [path]
copy
Stop a container
$ podman stop [container]
copy
Remove a container
$ podman rm [container]
copy

SYNOPSIS

podman [options] command [args]

DESCRIPTION

podman is a daemonless, rootless container engine that manages OCI-compliant containers and images. Unlike Docker, it does not require a background daemon process, and containers can run entirely as an unprivileged user.
The CLI is designed to be drop-in compatible with Docker, supporting familiar commands like run, build, pull, ps, stop, and rm. Podman also supports pods (groups of containers sharing namespaces), which align with Kubernetes pod concepts. Developed by Red Hat, it uses Buildah for image building and crun/runc as the container runtime.

PARAMETERS

run

Run a container.
ps
List containers.
pull
Pull an image.
build
Build image from Containerfile.
stop
Stop container.
rm
Remove container.
images
List images.
exec
Execute in container.
-d, --detach
Run in background.

CONFIGURATION

/etc/containers/registries.conf

System-wide container registry configuration including search registries and mirrors.
/etc/containers/storage.conf
Storage driver and path configuration for container images and layers.
/etc/containers/containers.conf
Default container runtime settings including resource limits, logging, and network configuration.
~/.config/containers/
User-level overrides for rootless Podman configuration.

CAVEATS

Rootless by default. Docker CLI compatible.

HISTORY

Podman was created by Red Hat as a daemonless Docker alternative.

SEE ALSO

docker(1), buildah(1), skopeo(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community