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.
|