Help · Mac storage

Moving Docker to an external drive.

Docker Desktop keeps all your Linux containers and images in one large disk image file, Docker.raw. If it's taking more room than your Mac can spare, Docker has its own setting to keep it on another drive. Use that, never Finder.

Before you move it: clean up

A smaller disk image moves faster and takes less room on the drive. Run docker system df to see what's using the space. To remove what's unused, see Docker using too much disk space? It covers docker system prune (which deletes permanently) and Docker's other clean-up options.

Move the disk image with Docker's setting

  1. Connect the external drive.
  2. Open Docker Desktop and choose Settings (from the Docker menu, or the gear in the Dashboard).
  3. Click Resources, then Advanced.
  4. Under Disk image location, click Browse and choose a folder on the external drive.
  5. Click Apply for the change to take effect.

If the folder you pick already has a Docker disk image in it, Docker asks whether to use that one or replace it. Replacing it means losing whatever was in the old one.

These steps follow Docker's documentation as of October 2026. Labels can change between Docker Desktop versions; if yours look different, check Docker's FAQ for Mac.

Never move Docker.raw in Finder, or with a symbolic link or a general “move to external” tool. Docker warns that moving the file directly can make Docker Desktop lose track of it. Its setting is the only safe way.

Things to know

Docker's documentation doesn't cover external drives, so these are general points rather than Docker's own rules:

Done with Docker altogether? See how to uninstall Docker Desktop.

See how much Docker is really using.

Pangalin Space Manager finds Docker's disk image in its usual place (marked Caution, with Docker's own steps), and Where did the rest go? shows Docker's virtual machine as part of System Data, with a button to open Docker. Its Janitors can run docker system prune -f for you while Docker is running. The confirmation says plainly that it deletes permanently and that Docker does the removing; named volumes are never touched. Janitors need a licence, because the space they free can't be measured in advance. To move Docker's disk image, use Docker's own setting above.

Free to scan · first 5 GB freed free, then $25 a year · 14-day full refund · Notarised by Apple