Mac system, limited hard disk, 128G
After pulling several mirror images and instantiating containers, the disk alarms.
Now a mechanical disk has been expanded. How can I modify the default directory of the image and container to other mounted disks?
The platform version of the problem and what methods have you tried?
Baidu said that the mac version of docker could not be configured, and the inquiry was fruitless for half a day.
//Please paste the code text below (please do not replace the code with pictures)
What is your expected result? What is the actual error message?
Which great god can dispel doubts, can the latest version of Docker for mac configure the mirror directory?
If yes, how to configure it? Thank you very much.
The data file directory of Docker under Mac is located at
~/Library/Containers/com.docker.docker/Data, you can move the entire directory to another hard disk:
mv ~/Library/Containers/com.docker.docker/Data /mnt/docker
Then set up a soft link link to come back:
ln -s /mnt/docker/Data ~/Library/Containers/com.docker.docker/Data