github.com/eikeon/docker@v1.5.0-rc4/docs/man/docker-ps.1.md (about) 1 % DOCKER(1) Docker User Manuals 2 % Docker Community 3 % JUNE 2014 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 status=(restarting|running|paused|exited) 40 41 **-l**, **--latest**=*true*|*false* 42 Show only the latest created container, include non-running ones. The default is *false*. 43 44 **-n**=-1 45 Show n last created containers, include non-running ones. 46 47 **--no-trunc**=*true*|*false* 48 Don't truncate output. The default is *false*. 49 50 **-q**, **--quiet**=*true*|*false* 51 Only display numeric IDs. The default is *false*. 52 53 **-s**, **--size**=*true*|*false* 54 Display total file sizes. The default is *false*. 55 56 **--since**="" 57 Show only containers created since Id or Name, include non-running ones. 58 59 # EXAMPLES 60 # Display all containers, including non-running 61 62 # docker ps -a 63 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 64 a87ecb4f327c fedora:20 /bin/sh -c #(nop) MA 20 minutes ago Exit 0 desperate_brattain 65 01946d9d34d8 vpavlin/rhel7:latest /bin/sh -c #(nop) MA 33 minutes ago Exit 0 thirsty_bell 66 c1d3b0166030 acffc0358b9e /bin/sh -c yum -y up 2 weeks ago Exit 1 determined_torvalds 67 41d50ecd2f57 fedora:20 /bin/sh -c #(nop) MA 2 weeks ago Exit 0 drunk_pike 68 69 # Display only IDs of all containers, including non-running 70 71 # docker ps -a -q 72 a87ecb4f327c 73 01946d9d34d8 74 c1d3b0166030 75 41d50ecd2f57 76 77 # HISTORY 78 April 2014, Originally compiled by William Henry (whenry at redhat dot com) 79 based on docker.com source material and internal work. 80 June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 81 August 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 82 November 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>