Remove all Docker containers, images, and volumes


Keywords
docker docker-utils
License
MIT
Install
pip install docker-nuke==0.2.2

Documentation

Docker Nuke

PyPIVersion TravisCI CoverageStatus CodeHealth PythonVersions

docker-nuke, for when you want to blow away every docker object in sight

Installation

docker-nuke is availiable on PyPI and can be pip installed

$ pip install docker-nuke

Running

$ docker-nuke
Stopping container 50bd26e339: Succeeded
Removing container 50bd26e339: Succeeded
Removing container 913061d931: Succeeded
Removing image     59507b30b4: Failed (retry with "--force")
Removing image     3fd9065eaf: Failed (retry with "--force")
Removing volume    140bb8e5cc: Succeeded

Use the --force option to force remove docker objects:

$ docker-nuke --force
Removing image     59507b30b4: Succeeded
Removing image     3fd9065eaf: Succeeded