podman-run
Create and start containers from images
TLDR
SYNOPSIS
podman run [options] image [command]
DESCRIPTION
podman run creates and starts a new container from a specified image. It is the primary command for launching containers, supporting interactive sessions (-it), background execution (-d), port mapping (-p), volume mounts (-v), and environment variables (-e).The --rm flag automatically removes the container when it exits. The --name option assigns a human-readable name. By default, Podman runs containers rootlessly without requiring a daemon, making it a drop-in replacement for docker run.
PARAMETERS
IMAGE
Container image.-it
Interactive terminal.-d, --detach
Run in background.-p, --publish PORT
Port mapping.-v, --volume MOUNT
Volume mount.--name NAME
Container name.-e, --env VAR
Environment variable.--rm
Remove container after exit.--network MODE
Set network mode (bridge, host, none, or custom network name).--restart POLICY
Restart policy (no, on-failure[:max], always, unless-stopped).-w, --workdir DIR
Working directory inside the container.--user USER
Run as specified user (name or UID[:GID]).--cap-add CAP
Add Linux capabilities.--cap-drop CAP
Drop Linux capabilities.--entrypoint CMD
Override image entrypoint.--label KEY=VALUE
Set metadata label on container.
CAVEATS
Runs rootless by default without requiring a daemon. Most Docker CLI flags are compatible. Some features (e.g., certain network modes) may behave differently in rootless mode.
HISTORY
podman run was introduced as part of the Podman project by Red Hat, providing a daemonless, Docker-compatible container runtime.
SEE ALSO
podman(1), podman-exec(1), docker-run(1)
