Why Are Docker Files So Large on Mac

If Docker is consuming huge storage on your Mac, Kudu can help clean related cache and leftover files.

By Kudu Team

Fix this automatically with Kudu

Run a free system scan to detect and resolve this issue automatically — no manual steps required.

Download Kudu Free →

What Causes This?

Docker files get so large on Mac because Docker Desktop stores images, containers, build cache, logs, and volumes inside a virtual disk file. Even if you delete a project folder, Docker may still keep old image layers, stopped containers, and unused volumes in that disk. Over time, repeated builds, pulled images, and cached data can make Docker consume tens or even hundreds of gigabytes.

Common Symptoms

  • Your Mac shows low disk space even after deleting project files
  • Docker Desktop is taking up far more storage than expected
  • docker system df reports large image, cache, or volume usage
  • Builds and container operations start feeling slower
  • You find large files under Docker-related storage locations

How to Fix It Manually

  1. Check how much space Docker is using

    • Open Terminal.
    • Run:
      docker system df
    • This shows how much space is being used by images, containers, local volumes, and build cache.
  2. Remove stopped containers, unused networks, dangling images, and build cache

    • In Terminal, run:
      docker system prune
    • To skip the confirmation prompt, use:
      docker system prune -f
    • This clears common Docker leftovers, but it does not remove unused volumes by default.
  3. Remove unused volumes if they are taking up space

    • Volumes often hold database files, app uploads, and other persistent data.
    • Run:
      docker volume prune
    • If you want to force it:
      docker volume prune -f
    • Be careful: this deletes volumes not currently used by at least one container.
  4. Remove unused images more aggressively

    • If you have many old images from previous builds, run:
      docker image prune -a
    • Or:
      docker image prune -a -f
    • This removes images not used by any existing container, including older tags and layers.
  5. Clear build cache

    • Docker build cache can grow very large, especially with frequent image builds.
    • Run:
      docker builder prune
    • For a more aggressive cleanup:
      docker builder prune -a
    • Add -f if you want to skip confirmation.
  6. Check Docker Desktop storage settings

    • Open Docker Desktop.
    • Go to Settings > Resources > Advanced.
    • Review the disk image size and storage location. If the virtual disk has grown very large, cleaning unused Docker data first may reduce active usage.
  7. Find the large Docker disk file on your Mac

    • In Finder, click Go > Go to Folder.
    • Enter:
      ~/Library/Containers/com.docker.docker/Data/vms/0/
    • Look for the Docker virtual disk file, often named something like Docker.raw or Docker.qcow2.
    • If this file is huge even after cleanup, Docker may still be holding old allocated space. In severe cases, resetting Docker Desktop can reclaim it, but that removes local Docker data.
  8. Use Docker Desktop reset only if necessary

    • Open Docker Desktop > Troubleshoot.
    • Choose the reset option carefully, such as removing data or resetting to factory defaults.
    • Only do this if you understand that local images, containers, and volumes may be deleted.

Fix It Automatically with Kudu

If Docker-related cache, temporary files, and leftover development data are filling your system, Kudu can help find and clean them automatically. It’s a faster option when you do not want to hunt through storage folders and old app data by hand.

Download Kudu Free →

Fix this automatically with Kudu

Run a free system scan to detect and resolve this issue automatically — no manual steps required.

Download Kudu Free →