Skip to content
Shellbay

Containers · about 2 min · 3 steps

Clean up Docker

Frees disk space by removing stopped containers, unused networks and leftover images. Running containers aren't touched.

Runs on

  • Debian / Ubuntu: supported
  • RHEL / Fedora: supported
  • Alpine: supported

Before you start

  • Run the Docker Engine and Compose workflow first.

What it changes on your server

  • Removes stopped containers, unused networks and dangling (untagged) images.
  • Optionally removes every image no container uses; they're downloaded again when needed.
  • Optionally removes unused anonymous volumes. Named volumes, where Compose projects keep their data, are never removed.

What Shellbay asks you

  1. How much to clean up?

    Stopped containers, unused networks and untagged images are always removed. Removing every unused image frees the most space, but a stopped Compose project then has to download its images again. Anonymous volumes are unnamed data folders left behind by removed containers; check nothing you need is in them.

    Also remove every unused image
    On or off. Default: off
    Also remove unused anonymous volumes
    On or off. Default: off

Steps

  1. List what will be removed
  2. Remove them
  3. Check the result

Shellbay checks the server before the first step, and stops at the first step that fails.

When it's done

  • Docker's leftovers are gone. Run Docker status to see the disk space used now.