Skip to content

Instantly share code, notes, and snippets.

View r14c's full-sized avatar

Romina K S r14c

View GitHub Profile
@r14c
r14c / remove-docker-containers.md
Last active January 22, 2016 22:14 — forked from ngpestelos/remove-docker-containers.md
Remove unused Docker containers and images

Delete all containers

$ [sudo] docker ps -q -a | xargs [sudo] docker rm

Notes

-q prints only the container IDs, -a prints all containers.