docker/docker — pull request #9415 by eloycoto (2014-11-30 20:04:38+00:00)
Title: Expanded view in docker ps

Hi,

Usually I work with splits on my terminal, and the `docker ps` output is extremely long for them which makes it unreadable.

Today we (@agonzalezro and me) made a quick fix in the `CmdPs` function to add the `-x` (`--expanded`) option to get an output like this:

```
âžœ docker git:(master) ./bundles/1.3.2-dev/binary/docker ps -a -x
- [ 6e73b3ce8098 ] -+----------------------------------------------------------
Container_id | 6e73b3ce8098
Image | ubuntu:14.04
Command | "sleep 10000"
Created | 3 hours ago
Status | Exited (-1) 2 hours ago
Ports | 0.0.0.0:1025->80/tcp
Name | modest_nobel
- [ ef78c54845c0 ] -+----------------------------------------------------------
Container_id | ef78c54845c0
Image | mysql:5
Command | "/entrypoint.sh mysq
Created | 5 hours ago
Status | Exited (1) 5 hours ago
Name | sad_meitner
- [ 4f82da9cd562 ] -+----------------------------------------------------------
Container_id | 4f82da9cd562
Image | 84401c0b05c0
Command | "/bin/sh -c 'cd /usr
Created | 6 hours ago
Status | Exited (-1) 6 hours ago
Name | dreamy_sinoussi
```

Please, realise that the `Ports` attribute is only shown when it has any value.

Thanks.