Docker images are stored in $HOME/Library/Containers/com.docker.docker/Data
but how to move those large files to an external drive for example? I have tried symbolic link, it didn't work. Also I couldn't find the -g
option for docker
as mentioned here. Any suggestions?
Asked
Active
Viewed 4,628 times
4

Community
- 1
- 1

Karol Lewandowski
- 41
- 1
- 3
2 Answers
4
All you have to do is go to preferences
Then Disk and click at "move disk image"
Select the folder you want to move to, awaits it completes and you are done.

Bruno Almeida
- 129
- 2
- 6
-
4This option seems to have been removed from Docker Desktop – GuilPejon Jan 03 '21 at 17:09
-
I cant find the option to chose path :-( – Exploring Jun 15 '21 at 18:27
-
1@Bruno this solution does not work as I don't see this option with more recent versions of docker desktop. – Exploring Jun 15 '21 at 18:28
0
Recent versions of Docker Desktop (around 4.18 until now) is having issues with Disk image location configuration.
It will hang forever if you change this path via Docker Desktop Settings.
But there's a workaround to modify it via ~/.docker/daemon.json
:
{
"data-root": "/path/to/new/directory"
}
Exit Docker Desktop and restart again. Please note that Docker may start with empty data.

HaiTH
- 925
- 9
- 9