Overview
podman-1.7.0 on Fedora 31.
Informational
version
$ podman version Version: 1.7.0 RemoteAPI Version: 1 Go Version: go1.13.5 OS/Arch: linux/amd64 $
$ podman version --format json { "Client": { "RemoteAPIVersion": 1, "Version": "1.7.0", "GoVersion": "go1.13.5", "GitCommit": "", "Built": 0, "OsArch": "linux/amd64" }, "Server": { "RemoteAPIVersion": 1, "Version": "1.7.0", "GoVersion": "go1.13.5", "GitCommit": "", "Built": 0, "OsArch": "linux/amd64" } } $
$ podman version --format '{{.Client.Version}}' 1.7.0 $
images
$ podman images [options] $ podman image list [options] $ podman image ls [options]
Examples: podman images --format json podman images --sort repository --format "table {{.ID}} {{.Repository}} {{.Tag}}" podman images --filter dangling=true Flags: -a, --all Show all images (default hides intermediate images) --digests Show digests -f, --filter strings Filter output based on conditions provided (default []) --format string Change the output format to JSON or a Go template --history Display the image name history --no-trunc Do not truncate output -n, --noheading Do not print column headings -q, --quiet Display only image IDs --sort string Sort by created, id, repository, size, or tag (default "created")
$ podman images REPOSITORY TAG IMAGE ID CREATED SIZE docker.io/library/centos centos8.1.1911 470671670cac 6 days ago 245 MB docker.io/library/centos latest 470671670cac 6 days ago 245 MB docker.io/library/alpine latest cc0abc535e36 4 weeks ago 5.86 MB docker.io/library/ubuntu 18.04 549b9b86cb8d 5 weeks ago 66.6 MB docker.io/library/fedora 31 f0858ad3febd 2 months ago 201 MB docker.io/library/hello-world latest fce289e99eb9 12 months ago 6.14 kB $
system
df
$ podman system df TYPE TOTAL ACTIVE SIZE RECLAIMABLE Images 5 3 518MB 274MB (52%) Containers 7 0 543MB 543MB (100%) Local Volumes 0 1 0B 0B (0%) $
$ podman system df --verbose Images space usage: REPOSITORY TAG IMAGE ID CREATED SIZE SHARED SIZE UNIQUE SIZE CONTAINERS docker.io/library/hello-world latest fce289e99eb9 12 months ago 6.14kB 0B 6.14kB 1 docker.io/library/ubuntu 18.04 549b9b86cb8d 4 weeks ago 66.6MB 0B 66.6MB 0 docker.io/library/alpine latest cc0abc535e36 3 weeks ago 5.86MB 0B 5.86MB 2 docker.io/library/fedora 31 f0858ad3febd 2 months ago 201MB 0B 201MB 0 docker.io/library/centos latest 470671670cac 3 days ago 245MB 0B 245MB 4 Containers space usage: CONTAINER ID IMAGE COMMAND LOCAL VOLUMES SIZE CREATED STATUS NAMES 4b16d37f06b1 4706 sh 0 273MB 3 days ago exited adoring_hermann 4e233595e13f 4706 /bin/bash 0 22.4MB 3 days ago exited affectionate_chatterjee 571d62269f32 fce2 /hello 0 0B 2 weeks ago exited nervous_hopper 572f1afbb601 4706 sh 1 137B 28 hours ago exited bold_easley 67b90a785285 4706 sh 0 247MB 2 days ago exited nice_stonebraker af2248271eb9 cc0a sh 0 12B 9 days ago exited dazzling_bohr d7057599b193 cc0a sh 0 101B 3 days ago exited epic_pascal ... snip ...
info
$ podman [system] info $ podman info --format={{".host"}} $ podman info --format={{".registries"}} $ podman info --format={{".store"}} $ podman info --format={{".store.RunRoot"}}
migrate
prune
$ podman system prune [--all,-a] [--volumes]
renumber
reset
Building images
build
image
build
exists
$ podman image exists ... $ podman container exists ...
history
$ podman [image] history centos ID CREATED CREATED BY SIZE COMMENT 470671670cac 4 days ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0B 470671670cac 4 days ago /bin/sh -c #(nop) LABEL org.label-schema.s... 0B <missing> 7 days ago /bin/sh -c #(nop) ADD file:aa54047c80ba300... 244.9MB $
$ podman history --no-trunc=true --human=false centos $ podman history --format "{{.ID}} {{.Created}}" centos $ podman history --format json centos
import
inspect
$ podman [image] inspect centos $ podman inspect centos --format "{{.GraphDriver}}" $ podman inspect centos --format "{{.GraphDriver.Name}}" $ podman inspect --format "{{.ImageName}}" d1218680819b docker.io/library/centos:latest $
list
load
prune
pull
push
rm [podman rmi]
$ podman rmi [--all,-a] [--force,-f]
save
sign
tag
tree
trust
container
attach
checkpoint
cleanup
commit
cp
create
diff
exec
exists
export
init
inspect [see above]
kill
list
logs
mount
pause
port
prune
restart
restore
rm
$ podman rm ...
run
runlabel
start
stats
stop
top
$ podman [container] top -a
The following descriptors are supported in addition to the AIX format descriptors mentioned in ps (1): args, capbnd, capeff, capinh, capprm, comm, etime, group, hgroup, hpid, huser, label, nice, pcpu, pgid, pid, ppid, rgroup, ruser, seccomp, state, time, tty, user, vsz
umount
unpause
wait
volume
create
inspect
ls
prune
rm
TO DO
commit
container
cp
create
diff
events
exec
export
generate
healthcheck
history
image
images
import
init
inspect
kill
load
login
logout
logs
mount
network
pause
play
pod
port
ps
pull
push
restart
rm
rmi
run
save
search
$ podman search --limit 3 rhel $ podman search alpine $ podman search registry.fedoraproject.org/fedora $ podman search --filter=is-official alpine
start
stats
stop
$ podman stop mywebserver $ podman stop 860a4b235279 $ podman stop mywebserver 860a4b235279 $ podman stop --cidfile /home/user/cidfile-1 $ podman stop --timeout 2 860a4b235279 $ podman stop -a $ podman stop --latest