github.com/stchris/docker@v1.4.2-0.20150106053530-1510a324dbd5/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 [**-f**|**--filter**[=*[]*]] 12 [**-l**|**--latest**[=*false*]] 13 [**-n**[=*-1*]] 14 [**--no-trunc**[=*false*]] 15 [**-q**|**--quiet**[=*false*]] 16 [**-s**|**--size**[=*false*]] 17 [**--since**[=*SINCE*]] 18 19 20 # DESCRIPTION 21 22 List the containers in the local repository. By default this show only 23 the running containers. 24 25 # OPTIONS 26 **-a**, **--all**=*true*|*false* 27 Show all containers. Only running containers are shown by default. The default is *false*. 28 29 **--before**="" 30 Show only container created before Id or Name, include non-running ones. 31 32 **-f**, **--filter**=[] 33 Provide filter values. Valid filters: 34 exited=<int> - containers with exit code of <int> 35 status=(restarting|running|paused|exited) 36 37 **-l**, **--latest**=*true*|*false* 38 Show only the latest created container, include non-running ones. The default is *false*. 39 40 **-n**=-1 41 Show n last created containers, include non-running ones. 42 43 **--no-trunc**=*true*|*false* 44 Don't truncate output. The default is *false*. 45 46 **-q**, **--quiet**=*true*|*false* 47 Only display numeric IDs. The default is *false*. 48 49 **-s**, **--size**=*true*|*false* 50 Display total file sizes. The default is *false*. 51 52 **--since**="" 53 Show only containers created since Id or Name, include non-running ones. 54 55 # EXAMPLES 56 # Display all containers, including non-running 57 58 # docker ps -a 59 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 60 a87ecb4f327c fedora:20 /bin/sh -c #(nop) MA 20 minutes ago Exit 0 desperate_brattain 61 01946d9d34d8 vpavlin/rhel7:latest /bin/sh -c #(nop) MA 33 minutes ago Exit 0 thirsty_bell 62 c1d3b0166030 acffc0358b9e /bin/sh -c yum -y up 2 weeks ago Exit 1 determined_torvalds 63 41d50ecd2f57 fedora:20 /bin/sh -c #(nop) MA 2 weeks ago Exit 0 drunk_pike 64 65 # Display only IDs of all containers, including non-running 66 67 # docker ps -a -q 68 a87ecb4f327c 69 01946d9d34d8 70 c1d3b0166030 71 41d50ecd2f57 72 73 # HISTORY 74 April 2014, Originally compiled by William Henry (whenry at redhat dot com) 75 based on docker.com source material and internal work. 76 June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 77 August 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 78 November 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>