Is it safe to delete Docker buildx state?

~/.docker/buildx · Check first

What it is

Buildx builder settings; build cache itself lives inside Docker's disk.

Can you delete it?

Sometimes, check what is inside first. Deleting the folder removes builder setups, not the cache.

How to clean it safely

  1. Run: docker buildx prune to free build cache.

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/".docker/buildx" 2>/dev/null

Step-by-step guide: Docker disk space →

Questions

Is it safe to delete ~/.docker/buildx?

Sometimes, check what is inside first. Deleting the folder removes builder setups, not the cache.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac