Docker Goodies
![](https://c1.staticflickr.com/8/7336/14098888813_1047e39f08.jpg)
Some Useful Docker Commands
Remove all containers
Under the prompt:
#!/bin/bash
docker rm $(docker ps -a -q)
The nice command docker ps -a -q lists only ids of all containers
Remove all images
Under the prompt:
#!/bin/bash
docker rmi $(docker images -q)
Similarly, docker images -q lists only image ids