podman-run
Create and start containers from images
TLDR
Run a container
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 after exit.
CAVEATS
Rootless by default. Docker-compatible flags.
HISTORY
podman run provides container execution as a Docker-compatible command.
SEE ALSO
podman(1), podman-exec(1), docker-run(1)
