This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14826|Reply: 0

Docker stores the image location under the Windows system

[Copy link]
Posted on 11/15/2019 10:45:46 AM | | | |
My computer is a win 10 system, I installed the Docker Desktop version, and then switched to the Linux container.

Using the following command, the display location cannot be displayed (if you see the web, you can display it under Windows container)



In the lower right corner of the desktop, right-click on it, select settings, and open the docker settings interface.

Then click on the advanced settings option in docker's settings interface, which is the advanced settings.



My storage location: C:\ProgramData\DockerDesktop\vm-data\DockerDesktop.vhdx

The DockerDesktop.vhdx file takes up 353 MB of storage space, and I have the following image in docker:



In the advanced settings, we can see that there is a disk image location, which is where the hard disk image is stored. The default is on the C drive, click the browse button next to it

I set F:\docker_data as the storage address here, as shown in the figure below:



Apply settings in the lower right corner, at this time docker will prompt to start restarting.

After the restart is completed, we open the docker_data folder of the F drive and find that the docker virtual machine file has been transferred to this directory. As shown in the image below. As we have said in previous experience, on the Windows platform, Docker provides Docker services by opening a Docker virtual machine through Hyper-V.So as you download more images, the docker image file will get bigger and bigger。 Therefore, you must clean up the images in the docker virtual machine that you are not using in time.





Previous:Difference between dockerfile and docker-compose
Next:Play with an account lockout security strategy
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com