Open connorblack opened 5 months ago
Just voicing that I am having the same issue on MacOS 12.7.1 ("not officially supported" etc, but still). The workaround given here doesn't work for me–Docker Desktop just hangs on startup and can only be killed by kill -9
ing all the docker processes. I also tried just symlinking ~/Library/Containers/com.docker.docker
to the external drive, instead of changing the path in settings.json
, with the same results.
I did get it to work by first moving the Docker disk image to another location on the same drive using the GUI. Then, I can move the DockerDesktop/Docker.raw
file to an external drive and replace it with a single symlink. The size of the image is limited to the size of the main drive because the GUI doesn't detect that it's physically located somewhere else with more space. But it does work!
Description
Attempted to relocate the Docker data path to an external drive using the Docker Desktop application by selecting a new location. Docker throws a runtime error and then reverts back to the default location after restarting:
As a workaround, I tried the following steps:
com.docker.docker
:dataFolder
insettings.json
: Updated the"dataFolder"
field in thesettings.json
file located at/Users/<username>/Library/Group Containers/group.com.docker/settings.json
.While this workaround seems to work somewhat consistently, I still encounter issues where Visual Studio Code and other applications are unable to connect to Docker after the relocation. Socket daemons also hang.
Reproduce
rsync
command."dataFolder"
field insettings.json
to the new path on the SSD.Expected behavior
docker version
docker info
Diagnostics ID
8BC59B8A-21DC-418F-A50E-AFE7E330CE13/20240602232804
Additional Info
MacBook Pro 16-inch, Nov 2023 Chip Apple M3 Max Memory 128 GB Startup disk Macintosh HD macOS 14.5 (23F79)