Skip to main content

Remove all Docker containers, images, and volumes

Project description

PyPIVersion TravisCI CoverageStatus CodeHealth PythonVersions

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


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

$ pip install docker-nuke


$ docker-nuke
Stopping container: identidock_identidock_1
Stopping container: identidock_redis_1
Stopping container: identidock_dnmonster_1
Removing container: identidock_identidock_1
Removing container: identidock_redis_1
Removing container: identidock_dnmonster_1
Removing image: ['identidock_identidock:latest']
Removing image: ['amouat/dnmonster:1.0']
Removing image: ['python:3.6']
Removing image: ['redis:3.0']
Removing volume: 15cd0eca3196513657b12ba9b8d27a7d220f49f6a374124abd21d9aae5672d55

Use the –force option to force remove docker objects:

$ docker-nuke
Removing image: ['python:3-foo', 'python:3-slim']
Stopping/removing failed with status code 409. Rerun with '--force' to force removal
$ docker-nuke --force
Removing image: ['python:3-foo', 'python:3-slim']

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for docker-nuke, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size docker_nuke-0.2.0-py2.py3-none-any.whl (3.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size docker-nuke-0.2.0.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page