Docker Memo

December 15, 2018

List of useful Docker commands.


Stop all containers: docker stop $(docker ps -a -q)

Remove all containers: docker rm $(docker ps -a -q)

Remove all docker images: docker rmi $(docker images -q)

Clear everything unused: docker ps -q | xargs -r docker stop ; docker system purge -a docker system prune Removes all volumes / images / networks and everything else.