Essential commands for running daemonless containers with Podman¶
Podman is a daemonless, rootless container engine designed to manage containers, pods, and images, with a command-line interface nearly identical to Docker.
Container Management¶
List Running Containers:
List All Containers (Running & Stopped):
Run a Container:
Run Interactively with Port Forwarding:
Start a Stopped Container:
Stop a Container Gracefully:
Restart a Container:
Remove a Container:
Force Remove a Running Container:
Execution & Inspection¶
Open Shell Inside Container:
Run Single Command Inside Container:
View Container Logs:
Stream Container Logs Live:
Inspect Container Details:
View Resource Usage (Stats):
Image Management¶
List Local Images:
Pull Image from Registry:
Build Image from Containerfile/Dockerfile:
Remove a Local Image:
Tag an Image:
Pods & Networking¶
Unlike Docker, Podman allows you to group containers into "Pods" (similar to Kubernetes pods).
List Pods:
Create a New Pod:
Run Container Inside a Pod:
Stop a Pod:
Remove a Pod:
List Networks:
Volumes & Storage¶
List Volumes:
Create a Volume:
Inspect a Volume:
Remove a Volume:
Prune Unused Data: