From 4ab054073dadf5257bdd0ff21e154b859e139f1e Mon Sep 17 00:00:00 2001 From: haircommander Date: Thu, 14 Jun 2018 15:29:46 -0400 Subject: 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 Closes: #948 Approved by: rhatdan --- docs/podman-images.1.md | 2 +- docs/podman-ps.1.md | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/podman-images.1.md b/docs/podman-images.1.md index a97785de7..730ef4e3c 100644 --- a/docs/podman-images.1.md +++ b/docs/podman-images.1.md @@ -42,7 +42,7 @@ Lists only the image IDs. **--sort** -Sort by id, repository, size, tag or time (default: time) +Sort by created, id, repository, size or tag (default: created) ## EXAMPLE 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 -- cgit v1.2.3-54-g00ecf