This document outlines useful information for ops and dev transfer as it relates to infrastructure that utilizes Podman
.
Podman is a tool for managing Pods, Containers, and Container Images. The CLI for Podman is based on the Docker CLI, although Podman does not require a runtime daemon to be running in order to function.
Many traditional tools will still be useful, such as pstree
, nsenter
and lsns
.
As well as some systemd helpers like systemd-cgls
and systemd-cgtop
are still just as applicable.
For many troubleshooting and information collection steps, there may be an existing pattern.
Following provides equivalent with Podman
tools for gathering information or jumping into containers, for operational use.
Existing Step | Podman (and friends) |
---|---|
docker run |
podman run |
docker exec |
podman exec |
docker info |
podman info |
docker inspect |
podman inspect |
docker logs |
podman logs |
docker ps |
podman ps |
docker stats |
podman stats |
There are other equivalents for these tools
Existing Step | Podman (and friends) |
---|---|
docker attach |
podman attach |
docker cp |
podman cp |
docker build |
podman build |
docker commit |
podman commit |
docker container |
podman container |
docker create |
podman create |
docker diff |
podman diff |
docker export |
podman export |
docker history |
podman history |
docker image |
podman image |
docker images |
podman images |
docker import |
podman import |
docker kill |
podman kill |
docker load |
podman load |
docker login |
podman login |
docker logout |
podman logout |
docker pause |
podman pause |
docker ps |
podman ps |
docker pull |
podman pull |
docker push |
podman push |
docker port |
podman port |
docker restart |
podman restart |
docker rm |
podman rm |
docker rmi |
podman rmi |
docker run |
podman run |
docker save |
podman save |
docker search |
podman search |
docker start |
podman start |
docker stop |
podman stop |
docker tag |
podman tag |
docker top |
podman top |
docker unpause |
podman unpause |
docker version |
podman version |
docker volume |
podman volume |
docker volume create |
podman volume create |
docker volume inspect |
podman volume inspect |
docker volume ls |
podman volume ls |
docker volume prune |
podman volume prune |
docker volume rm |
podman volume rm |
docker system |
podman system |
docker system prune |
podman system prune |
docker system info |
podman system info |
docker wait |
podman wait |
**** Use mount to take advantage of the entire linux tool chain rather then just cp. Read here
for more information.
Those Docker commands currently do not have equivalents in podman
:
Missing command | Description |
---|---|
docker events |
|
docker network |
|
docker node |
|
docker plugin |
podman does not support plugins. We recommend you use alternative OCI Runtimes or OCI Runtime Hooks to alter behavior of podman. |
docker rename |
podman does not support rename, you need to use podman rm and podman create to rename a container. |
docker secret |
|
docker service |
|
docker stack |
|
docker swarm |
podman does not support swarm. We support Kubernetes for orchestration using CRI-O. |
docker volume |
podman currently supports file volumes. Future enhancement planned to support Docker Volumes Plugins |
The following podman commands do not have a Docker equivalent:
podman generate
podman generate kube
podman container checkpoint
podman container cleanup
podman container exists
podman container refresh
podman container runlabel
podman container restore
podman healthcheck run
podman image exists
podman image sign
podman image trust
podman mount
podman play
podman play kube
podman pod
podman pod create
podman pod exists
podman pod inspect
podman pod kill
podman pod pause
podman pod ps
podman pod restart
podman pod rm
podman pod start
podman pod stop
podman pod top
podman pod unpause
podman varlink
podman umount