1
0
mirror of https://github.com/docker/cli.git synced 2025-08-08 12:02:07 +03:00

Re-implement --before and --since as options for --filter

* This commit will mark --before and --since as deprecated, but leave their behavior
  unchanged until they are removed, then re-implement them as options for --filter.

* And update the related docs.

* Update the integration tests.

Fixes issue #17716

Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
This commit is contained in:
Wen Cheng Ma
2015-11-05 15:08:00 +08:00
committed by Tibor Vass
parent fa2f024bc6
commit 562c2df97d
2 changed files with 6 additions and 14 deletions

View File

@@ -15,16 +15,14 @@ parent = "smn_cli"
List containers
-a, --all=false Show all containers (default shows just running)
--before="" Show only container created before Id or Name
-f, --filter=[] Filter output based on conditions provided
--format=[] Pretty-print containers using a Go template
--help=false Print usage
-l, --latest=false Show the latest created container, include non-running
-n=-1 Show n last created containers, include non-running
-l, --latest=false Show the latest created container (includes all states)
-n=-1 Show n last created containers (includes all states)
--no-trunc=false Don't truncate output
-q, --quiet=false Only display numeric IDs
-s, --size=false Display total file sizes
--since="" Show created since Id or Name, include non-running
Running `docker ps --no-trunc` showing 2 linked containers.