Closed thsutton closed 7 years ago
yes please!
function dl { docker ps -lq; }
function dl { docker ps -lq -f "status=running"; }
watch out, this might break dlog
. I don't know if we want dlog
to also happen for exiting containers. It's pretty useful when they crash
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5466a4ca8bff debian "bash" 4 minutes ago Exited (0) 4 minutes ago thirsty_shirley
07ec746c6633 debian "bash" 5 minutes ago Up 5 minutes laughing_williams
143a710eabd8 debian "bash" 5 minutes ago Exited (0) 5 minutes ago romantic_brahmagupta
$ docker ps -al
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5466a4ca8bff debian "bash" 5 minutes ago Exited (0) 5 minutes ago thirsty_shirley
$ docker ps -al -f "status=running"
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
07ec746c6633 debian "bash" 5 minutes ago Up 5 minutes laughing_williams
@simplesteph Is this what you want?