whatisgithub

What is docker-nuke?

jwasham/docker-nuke — explained in plain English

Analysis updated 2026-07-10 · repo last pushed 2020-02-12

79ShellAudience · developerComplexity · 1/5DormantSetup · easy

In one sentence

A shell script that wipes out every Docker container, image, and volume on your machine at once. It's a reset button for your local Docker environment when you want to start completely fresh.

Mindmap

mindmap
  root((repo))
    What it does
      Wipes all containers
      Deletes all images
      Clears all volumes
    Use cases
      Reset Docker environment
      Rule out conflicts
      Free up disk space
    Audience
      Docker developers
      DevOps engineers
    Tech stack
      Shell script
      Docker CLI
    Risks
      Destructive action
      No confirmation prompts
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reset your local Docker environment to a clean slate before starting a new project.

USE CASE 2

Clear out leftover Docker data that is causing conflicts or taking up disk space.

USE CASE 3

Wipe a dedicated build machine between projects to ensure no cross-project interference.

What is it built with?

ShellDocker

How does it compare?

jwasham/docker-nukeduggasco/bc250-40cu-unlockfilipedeschamps/dotfiles
Stars797467
LanguageShellShellShell
Last pushed2020-02-122025-04-23
MaintenanceDormantStale
Setup difficultyeasyhardmoderate
Complexity1/55/52/5
Audiencedeveloperops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Simply clone the repo and run the shell script, no dependencies beyond Docker itself.

No license is mentioned in the README, so usage rights are unclear.

So what is it?

docker-nuke is a cleanup tool that wipes out every Docker container, image, and volume on your machine in one shot. Think of it as a "reset button" for your local Docker environment, it clears out everything so you can start fresh without old stuff lingering around. If you're not familiar with Docker, it's a tool developers use to package and run software in isolated environments called containers. Over time, as you build and test things, you accumulate a lot of leftover containers, images (the templates containers are built from), and volumes (storage areas). These leftovers can sometimes cause confusion or conflicts when you're trying to build something new, and they also take up disk space. This script just wipes all of that out at once. The people who would use this are developers who work with Docker regularly and want a quick way to reset their environment. For example, if you're building a new containerized app and something isn't working right, you might want to rule out interference from previous builds. Running this script ensures you're starting with a clean slate, no old containers running in the background, no cached images that might be causing issues. The tradeoff is obvious but worth stating: this script is destructive. It removes everything, not just the stuff related to your current project. There's no selective cleanup or confirmation prompts mentioned in the README, you run it, and everything Docker-related on that machine is gone. So you'd only use it when you're sure you don't need any of your existing Docker data, or when you're working on a machine dedicated to a specific task where a full reset is acceptable. The README doesn't go into much detail beyond the basic usage instructions, so there may not be additional safety features or options. It's a straightforward, single-purpose script.

Copy-paste prompts

Prompt 1
Write a shell script that stops and removes all Docker containers, images, and volumes in one command, similar to docker-nuke.
Prompt 2
Add a confirmation prompt to this Docker cleanup script so users must type 'yes' before it destroys everything.
Prompt 3
Create a safer version of docker-nuke that only removes containers and images older than 7 days instead of wiping everything.

Frequently asked questions

What is docker-nuke?

A shell script that wipes out every Docker container, image, and volume on your machine at once. It's a reset button for your local Docker environment when you want to start completely fresh.

What language is docker-nuke written in?

Mainly Shell. The stack also includes Shell, Docker.

Is docker-nuke actively maintained?

Dormant — no commits in 2+ years (last push 2020-02-12).

What license does docker-nuke use?

No license is mentioned in the README, so usage rights are unclear.

How hard is docker-nuke to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is docker-nuke for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.