Group published and exposed ports by contiguous ranges

Signed-off-by: Colm Hally <colmhally@gmail.com>
master
Colm Hally 2015-01-28 12:56:22 +00:00 committed by Tibor Vass
parent f99a52dc6c
commit 6ecd6bb069
1 changed files with 5 additions and 3 deletions

View File

@ -1443,12 +1443,14 @@ Running `docker ps --no-trunc` showing 2 linked containers.
$ sudo docker ps $ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f7ee772232194fcc088c6bdec6ea09f7b3f6c54d53934658164b8602d7cd4744 ubuntu:12.04 bash 17 seconds ago Up 16 seconds webapp 4c01db0b339c ubuntu:12.04 bash 17 seconds ago Up 16 seconds 3300-3310/tcp webapp
d0963715a061c7c7b7cc80b2646da913a959fbf13e80a971d4a60f6997a2f595 crosbymichael/redis:latest /redis-server --dir 33 minutes ago Up 33 minutes 6379/tcp redis,webapp/db d7886598dbe2 crosbymichael/redis:latest /redis-server --dir 33 minutes ago Up 33 minutes 6379/tcp redis,webapp/db
`docker ps` will show only running containers by default. To see all containers: `docker ps` will show only running containers by default. To see all containers:
`docker ps -a` `docker ps -a`
`docker ps` will group exposed ports into a single range if possible. E.g., a container that exposes TCP ports `100, 101, 102` will display `100-102/tcp` in the `PORTS` column.
#### Filtering #### Filtering
The filtering flag (`-f` or `--filter)` format is a `key=value` pair. If there is more The filtering flag (`-f` or `--filter)` format is a `key=value` pair. If there is more