Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
podman [2020/01/22 13:36] – [inspect] rpjdaypodman [2020/01/27 21:41] (current) – [stop] rpjday
Line 13: Line 13:
 Go Version:         go1.13.5 Go Version:         go1.13.5
 OS/Arch:            linux/amd64 OS/Arch:            linux/amd64
 +$
 +</code>
 +
 +<code>
 +$ 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"
 +    }
 +}
 $ $
 </code> </code>
Line 21: Line 44:
 $ $
 </code> </code>
 +
 +==== images ====
 +
 +<code>
 +$ podman images [options]
 +$ podman image list [options]
 +$ podman image ls [options]
 +</code>
 +
 +<code>
 +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")
 +</code>
 +
 +<code>
 +$ 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
 +$
 +</code>
 +
  
 ===== system ===== ===== system =====
Line 62: Line 124:
  
 <code> <code>
-$ podman system info+$ podman [systeminfo
 $ podman info --format={{".host"}} $ podman info --format={{".host"}}
 $ podman info --format={{".registries"}} $ podman info --format={{".registries"}}
Line 73: Line 135:
 ==== prune ==== ==== prune ====
  
 +<code>
 +$ podman system prune [--all,-a] [--volumes]
 +</code>
 ==== renumber ==== ==== renumber ====
  
Line 86: Line 151:
  
 ==== exists ==== ==== exists ====
 +
 +<code>
 +$ podman image exists ...
 +$ podman container exists ...
 +</code>
  
 ==== history ==== ==== history ====
Line 112: Line 182:
 $ podman inspect centos --format "{{.GraphDriver}}" $ podman inspect centos --format "{{.GraphDriver}}"
 $ podman inspect centos --format "{{.GraphDriver.Name}}" $ podman inspect centos --format "{{.GraphDriver.Name}}"
 +$ podman inspect --format "{{.ImageName}}" d1218680819b
 +docker.io/library/centos:latest
 +$
 </code> </code>
  
Line 164: Line 237:
 ==== init ==== ==== init ====
  
-==== inspect ====+==== inspect [see above] ====
  
 ==== kill ==== ==== kill ====
Line 186: Line 259:
 ==== rm ==== ==== rm ====
  
 +<code>
 +$ podman rm ...
 +</code>
 ==== run ==== ==== run ====
  
Line 197: Line 273:
  
 ==== top ==== ==== top ====
 +
 +<code>
 +$ podman [container] top -a
 +</code>
 +
 +<code>
 +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
 +</code>
  
 ==== umount ==== ==== umount ====
Line 258: Line 347:
 ==== save ==== ==== save ====
 ==== search ==== ==== search ====
 +
 +<code>
 +$ podman search --limit 3 rhel
 +$ podman search alpine
 +$ podman search registry.fedoraproject.org/fedora
 +$ podman search --filter=is-official alpine
 +</code>
 ==== start ==== ==== start ====
 ==== stats ==== ==== stats ====
 ==== stop ==== ==== stop ====
 +
 +<code>
 +$ 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
 +</code>
  
 ==== tag ==== ==== tag ====
-==== top ====+
 ==== umount ==== ==== umount ====
 ==== unpause ==== ==== unpause ====
  • podman.1579700206.txt.gz
  • Last modified: 2020/01/22 13:36
  • by rpjday