github.com/guilhermebr/docker@v1.4.2-0.20150428121140-67da055cebca/docs/man/docker-ps.1.md (about) 1 % DOCKER(1) Docker User Manuals 2 % Docker Community 3 % FEBRUARY 2015 4 # NAME 5 docker-ps - List containers 6 7 # SYNOPSIS 8 **docker ps** 9 [**-a**|**--all**[=*false*]] 10 [**--before**[=*BEFORE*]] 11 [**--help**] 12 [**-f**|**--filter**[=*[]*]] 13 [**-l**|**--latest**[=*false*]] 14 [**-n**[=*-1*]] 15 [**--no-trunc**[=*false*]] 16 [**-q**|**--quiet**[=*false*]] 17 [**-s**|**--size**[=*false*]] 18 [**--since**[=*SINCE*]] 19 20 21 # DESCRIPTION 22 23 List the containers in the local repository. By default this show only 24 the running containers. 25 26 # OPTIONS 27 **-a**, **--all**=*true*|*false* 28 Show all containers. Only running containers are shown by default. The default is *false*. 29 30 **--before**="" 31 Show only container created before Id or Name, include non-running ones. 32 33 **--help** 34 Print usage statement 35 36 **-f**, **--filter**=[] 37 Provide filter values. Valid filters: 38 exited=<int> - containers with exit code of <int> 39 label=<key> or label=<key>=<value> 40 status=(restarting|running|paused|exited) 41 name=<string> - container's name 42 id=<ID> - container's ID 43 44 **-l**, **--latest**=*true*|*false* 45 Show only the latest created container, include non-running ones. The default is *false*. 46 47 **-n**=-1 48 Show n last created containers, include non-running ones. 49 50 **--no-trunc**=*true*|*false* 51 Don't truncate output. The default is *false*. 52 53 **-q**, **--quiet**=*true*|*false* 54 Only display numeric IDs. The default is *false*. 55 56 **-s**, **--size**=*true*|*false* 57 Display total file sizes. The default is *false*. 58 59 **--since**="" 60 Show only containers created since Id or Name, include non-running ones. 61 62 # EXAMPLES 63 # Display all containers, including non-running 64 65 # docker ps -a 66 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 67 a87ecb4f327c fedora:20 /bin/sh -c #(nop) MA 20 minutes ago Exit 0 desperate_brattain 68 01946d9d34d8 vpavlin/rhel7:latest /bin/sh -c #(nop) MA 33 minutes ago Exit 0 thirsty_bell 69 c1d3b0166030 acffc0358b9e /bin/sh -c yum -y up 2 weeks ago Exit 1 determined_torvalds 70 41d50ecd2f57 fedora:20 /bin/sh -c #(nop) MA 2 weeks ago Exit 0 drunk_pike 71 72 # Display only IDs of all containers, including non-running 73 74 # docker ps -a -q 75 a87ecb4f327c 76 01946d9d34d8 77 c1d3b0166030 78 41d50ecd2f57 79 80 # Display only IDs of all containers that have the name `determined_torvalds` 81 82 # docker ps -a -q --filter=name=determined_torvalds 83 c1d3b0166030 84 85 # HISTORY 86 April 2014, Originally compiled by William Henry (whenry at redhat dot com) 87 based on docker.com source material and internal work. 88 June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 89 August 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 90 November 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 91 February 2015, updated by André Martins <martins@noironetworks.com>