Docker modified image file storage locations on win10

Remember: docker is modified from the pull-down image file server storage location (local), the source address is not a mirror (server)

First of all

docker under win10 there are visual interface and command line operation, double-click the downloaded docker-ce.exe after themselves start to finish automatically, installed by default to the C drive directory, which is a lot of default parameter or configuration file in C footwall directory. linux pc win10 While not as high memory, high storage, but still be able to start two docker container, consider the C drive is the system disk, docker use may be pulling a lot of image file, so we need to docker default image file memory address to change it.

modify

1.docker info look at the current


2. Modify operated by docker gui interface win10 taskbar


Select settings to enter the user interface, first check the "advanced", and then add the red box marked line (note: the path that you want to change the path)


Fill finished, click on "apply" button, docker service will automatically restarting. Then look at the docker info


3. This will prove in force


Look at the principle

Whether through the command line or gui, is to modify the corresponding parameter configuration by modifying daemon.json:

1.Linux the default location profile is /etc/docker/daemon.json

On 2.Windows default location profile is %programdata%\docker\config\daemon.json

on win10 you want to see programdata directory need to check the Show hidden files in the C drive, details of specific parameters and parameter attention can look at the official website of documents on demand [https://docs.docker.com/engine/ reference / commandline / dockerd / # daemon -configuration-file ]

Recommend [ linux modify the image file storage location ] documents



Original Address: https: //www.e-learn.cn/content/qita/826131

Guess you like

Origin www.cnblogs.com/jpfss/p/11229727.html