Docker Goodies

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