podman/commands-demo.md

21 KiB

PODMAN logo

libpod - library for running OCI-based containers in Pods

Podman Commands

Command Description Demo Script
podman-attach(1) Attach to a running container
podman-build(1) Build a container image using a Containerfile
podman-commit(1) Create new image based on the changed container
podman-container(1) Manage Containers
podman-container-checkpoint(1) Checkpoint one or more running containers
podman-container-cleanup(1) Clean up the container's network and mountpoints
podman-container-exists(1) Check if a container exists in local storage
podman-container-prune(1) Remove all stopped containers from local storage
podman-container-restore(1) Restore one or more containers from a checkpoint
podman-container-runlabel(1) Execute a command as described by a container image label
podman-cp(1) Copy files/folders between a container and the local filesystem
podman-create(1) Create a new container
podman-diff(1) Inspect changes on a container or image's filesystem
podman-events(1) Monitor Podman events
podman-exec(1) Execute a command in a running container
podman-export(1) Export container's filesystem contents as a tar archive
podman-generate(1) Generate structured output based on Podman containers and pods
podman-generate-kube(1) Generate Kubernetes YAML based on a pod or container
podman-generate-systemd(1) Generate systemd unit file(s) for a container or pod. Not supported for the remote client
podman-history(1) Show the history of an image
podman-image(1) Manage Images
podman-image-diff(1) Inspect changes on an image's filesystem.
podman-image-exists(1) Check if an image exists in local storage
podman-image-prune(1) Remove all unused images from the local store
podman-image-search(1) Search a registry for an image.
podman-image-sign(1) Create a signature for an image
podman-image-tree(1) Print layer hierarchy of an image in a tree format
podman-image-trust(1) Manage container registry image trust policy
podman-images(1) List images in local storage Here
podman-import(1) Import a tarball and save it as a filesystem image
podman-info(1) Display Podman related system information
podman-init(1) Initialize one or more containers
podman-inspect(1) Display a container or image's configuration Here
podman-kill(1) Kill the main process in one or more running containers
podman-load(1) Load an image from a container image archive into container storage
podman-login(1) Log in to a container registry
podman-logout(1) Log out of a container registry
podman-logs(1) Display the logs of one or more containers
podman-mount(1) Mount a working container's root filesystem
podman-network(1) Manage Podman networks
podman-network-create(1) Create a network
podman-network-connect(1) Connect a container to a network
podman-network-disconnect(1) Disconnect a container from a network
podman-network-inspect(1) Display the network configuration for one or more networks
podman-network-ls(1) Display a summary of networks
podman-network-rm(1) Remove one or more networks
podman-pause(1) Pause one or more running containers Here
podman-play(1) Play a pod
podman-play-kube(1) Create pods and containers based on Kubernetes YAML
podman-pod(1) Manage pods
podman-pod-create(1) Create a new pod
podman-pod-exists(1) Check if a pod exists in local storage
podman-pod-inspect(1) Display information describing a pod
podman-pod-kill(1) Kill the main process of each container in one or more pods
podman-pod-pause(1) Pause one or more containers
podman-pod-prune(1) Remove all stopped pods and their containers
podman-pod-ps(1) Print out information about pods
podman-pod-restart Restart one or more pods
podman-pod-rm(1) Remove one or more stopped pods and containers
podman-pod-start(1) Start one or more pods
podman-pod-stats(1) Display a live stream of resource usage stats for containers in one or more pods
podman-pod-stop(1) Stop one or more pods
podman-pod-top(1) Display the running processes of containers in a pod
podman-pod-unpause(1) Unpause one or more pods.
podman-port(1) List port mappings for a container
podman-ps(1) Print out information about containers
podman-pull(1) Pull an image from a registry
podman-push(1) Push an image from local storage to elsewhere play
podman-restart(1) Restart one or more containers ...
podman-rm(1) Remove one or more containers
podman-rmi(1) Remove one or more locally stored images
podman-run(1) Run a command in a new container
podman-save(1) Save an image to a container archive
podman-search(1) Search a registry for an image
podman-secret(1) Manage podman secrets
podman-secret-create(1) Create a new secret
podman-secret-inspect(1) Display detailed information on one or more secrets
podman--secret-ls(1) List all the available secrets
podman-secret-rm(1) Remove one or more secrets
podman-start(1) Start one or more containers
podman-stats(1) Display a live stream of one or more container's resource usage statistics
podman-stop(1) Stops one or more running containers
podman-system(1) Manage podman
podman-system-df(1) Show podman disk usage.
podman-system-events(1) Display Podman related system events.
podman-system-info(1) Display Podman related system information.
podman-system-migrate(1) Migrate existing containers to a new podman version
podman-system-prune(1) Remove all unused container, image and volume data
podman-system-renumber(1) Migrate lock numbers to handle a change in maximum number of locks
podman-tag(1) Add an additional name to a local image play
podman-top(1) Display the running processes of a container
podman-unmount(1) Unmount a working container's root filesystem
podman-unpause(1) Unpause one or more containers Here
podman-unshare(1) Run a command inside of a modified user namespace
podman-version(1) Display the Podman version information
podman-volume(1) Manage Volumes
podman-volume-create(1) Create a new volume
podman-volume-inspect(1) Get detailed information on one or more volumes
podman-volume-ls(1) List all the available volumes
podman-volume-prune(1) Remove all unused volumes
podman-volume-rm(1) Remove one or more volumes
podman-wait(1) Wait on one or more containers to stop and print their exit codes