diff options
author | haircommander <pehunt@redhat.com> | 2018-06-14 15:29:46 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-19 14:45:29 +0000 |
commit | 4ab054073dadf5257bdd0ff21e154b859e139f1e (patch) | |
tree | 73cc17e44047506e8d548b8625346400899af0f1 /docs/podman-ps.1.md | |
parent | dfd34b1b03d3ec0447fb04e15b2d0861a4a9778d (diff) | |
download | podman-4ab054073dadf5257bdd0ff21e154b859e139f1e.tar.gz podman-4ab054073dadf5257bdd0ff21e154b859e139f1e.tar.bz2 podman-4ab054073dadf5257bdd0ff21e154b859e139f1e.zip |
Added --sort to ps
Also podman ps now allows user to only output size of root FS, changed language of images and ps --sort to be by "created" as opposed to "time", and refactored the way templates are created (converted from psJSONParams type).
Signed-off-by: haircommander <pehunt@redhat.com>
Closes: #948
Approved by: rhatdan
Diffstat (limited to 'docs/podman-ps.1.md')
-rw-r--r-- | docs/podman-ps.1.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/podman-ps.1.md b/docs/podman-ps.1.md index f5d57c13c..f708c7d74 100644 --- a/docs/podman-ps.1.md +++ b/docs/podman-ps.1.md @@ -63,6 +63,11 @@ Valid placeholders for the Go template are listed below: | .Labels | All the labels assigned to the container | | .Mounts | Volumes mounted in the container | +**--sort** + +Sort by command, created, id, image, names, runningfor, size, or status", +Note: Choosing size will sort by size of rootFs, not alphabetically like the rest of the options +Default: created **--size, -s** @@ -128,6 +133,12 @@ CONTAINER ID NAMES a31ebbee9cee7 k8s_podsandbox1-redis_podsandbox1_redhat.test.crio_redhat-test-crio_0 29717 4026531835 4026532585 4026532587 4026532508 4026532589 4026531837 4026532588 ``` +``` +sudo podman ps -a --size --sort names +CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES +69ed779d8ef9f redis:alpine "redis-server" 25 hours ago Created 6379/tcp k8s_container1_podsandbox1_redhat.test.crio_redhat-test-crio_1 +02f65160e14ca redis:alpine "redis-server" 19 hours ago Exited (-1) 19 hours ago 6379/tcp k8s_podsandbox1-redis_podsandbox1_redhat.test.crio_redhat-test-crio_0 +``` ## ps Print a list of containers |