Added more examples and functionalities for docker ps documentation
Signed-off-by: André Martins <martins@noironetworks.com>
| ... | ... |
@@ -1,6 +1,6 @@ |
| 1 | 1 |
% DOCKER(1) Docker User Manuals |
| 2 | 2 |
% Docker Community |
| 3 |
-% JUNE 2014 |
|
| 3 |
+% FEBRUARY 2015 |
|
| 4 | 4 |
# NAME |
| 5 | 5 |
docker-ps - List containers |
| 6 | 6 |
|
| ... | ... |
@@ -37,6 +37,8 @@ the running containers. |
| 37 | 37 |
Provide filter values. Valid filters: |
| 38 | 38 |
exited=<int> - containers with exit code of <int> |
| 39 | 39 |
status=(restarting|running|paused|exited) |
| 40 |
+ name=<string> - container's name |
|
| 41 |
+ id=<ID> - container's ID |
|
| 40 | 42 |
|
| 41 | 43 |
**-l**, **--latest**=*true*|*false* |
| 42 | 44 |
Show only the latest created container, include non-running ones. The default is *false*. |
| ... | ... |
@@ -74,9 +76,15 @@ the running containers. |
| 74 | 74 |
c1d3b0166030 |
| 75 | 75 |
41d50ecd2f57 |
| 76 | 76 |
|
| 77 |
+# Display only IDs of all containers that have the name `determined_torvalds` |
|
| 78 |
+ |
|
| 79 |
+ # docker ps -a -q --filter=name=determined_torvalds |
|
| 80 |
+ c1d3b0166030 |
|
| 81 |
+ |
|
| 77 | 82 |
# HISTORY |
| 78 | 83 |
April 2014, Originally compiled by William Henry (whenry at redhat dot com) |
| 79 | 84 |
based on docker.com source material and internal work. |
| 80 | 85 |
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> |
| 81 | 86 |
August 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> |
| 82 | 87 |
November 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> |
| 88 |
+February 2015, updated by André Martins <martins@noironetworks.com> |