podman

From RaySoft

podman is a simple management tool for pods, containers and images.[1]

Documentation

Syntax

podman [GLOBAL-PARAMETER ...] SUBCOMMAND [PARAMETER ...]

Subcommands & Parameters

Image

pull
Pull an image from a registry.
images
List images in local storage.
rmi
Removes one or more locally stored images.
-f, --force
This option will cause podman to remove all containers that are using the image before removing the image from the system.

Container

auto-update
Auto update containers according to their auto-update policy.
exec
Execute a command in a running container.
-i, --interactive
When set to true, keep stdin open even if not attached. Default is false.
-t, --tty
Allocate a pseudo-TTY.
logs
Display the logs of one or more containers.
-f, --follow
Follow log output. Default is false.
ps
Prints out information about containers.
-a, --all
Show all the containers, default is only running containers.
-l, --latest
Show the latest container created (all states).
-p, --pod
Display the pods the containers are associated with.
restart
Restart one or more containers.
-a, --all
Restart all containers regardless of their current state.
rm
Remove one or more containers.
-f, --force
Force the removal of running and paused containers.
-v, --volumes
Remove anonymous volumes associated with the container.
run
Run a command in a new container.
-d, --detach
Detached mode: run the container in the background and print the new container ID. Default is false.
-e=VAR[=VALUE], --env=VAR[=VALUE]
Set environment variables.
--env-file=FILE
Read in a line delimited file of environment variables.
--name=NAME
Assign a name to the container.
--net=NAME, --network=NAME
Set the network mode for the container.
-p=HOST_PORT:CONTAINER_PORT,
--publish=HOST_PORT:CONTAINER_PORT
Publish a container's port, or range of ports, to the host.
--pod=NAME
Run container in an existing pod.
-v=[HOST_PATH:]CONTAINER_PATH,
--volume=[HOST_PATH:]CONTAINER_PATH
Create a bind mount.
start
Start one or more containers.
stop
Stop one or more running containers.

Pod

pod create
Create a new pod.
-n=NAME, --name=NAME
Assign a NAME to the pod.
-p=PORT, --publish=PORT
Publish a PORT or range of PORTs from the pod to the host.
--share=NAMESPACES
A comma delimited list of kernel NAMESPACES to share.
pod ps
Prints out information about pods.
-l, --latest
Show the latest pod created (all states).
pod prune
Remove all stopped pods and their containers.
-f, --force
Force removal of all running pods and their containers. Default is false.
pod restart
Restart one or more pods.
-a, --all
Restarts all pods.
pod rm
Remove one or more stopped pods and containers.
-f, --force
Stop running containers and delete all stopped containers before removal of pod.
pod start
Start one or more pods.
pod stop
Stop one or more pods.

Misc

generate systemd
Generate systemd unit file(s) for a container or pod.
-f, --files
Generate files instead of printing to stdout. The generated files are named {container,pod}-{ID,name}.service and will be placed in the current working directory.
-n, --name
Use the name of the container for the start, stop, and description in the unit file.
--new
Using this flag will yield unit files that do not expect containers and pods to exist.

Related Howtos

3 pages found:

References

  1. man 1 'podman'