When installing Docker on Windows 10, after selecting the container type as Linux container, the storage path can no longer be set by modifying the daemon graph value. The specific modification method is as follows: first stepClick setting to enter the settings page Step 2Select the container shared directory, place it on the corresponding drive according to your needs, then apply it, and it will be ready in a few minutes. Step 3Select the image storage address, browse to select the directory you want to store it, then apply, and it will be ready in a few minutes. Supplement: Modify the warehouse path of docker for windows under win10 Make complaintsTo be honest, I searched Baidu for a long time to solve this problem, but it didn't work after trying. Now that I have succeeded, I found that it is not useless, but I missed an important step. startMany people may find the method on Baidu by adding a path in Docker Engine as shown in the figure below. However, after adding it, Docker crashes. Actually, there is nothing wrong with this method, it just lacks a step, as follows (I can't capture the picture, I can only describe it in words) Right-click the little whale in the lower right corner, then find Switch Linux Containers… and click Switch. If an error occurs, there will be a command prompt with a series of commands for you to execute in the power shell. After the change, you can proceed to the operation shown in the picture above. Why is this happening?Because it uses Linux container by default, go to cmd in docker info, its Docker Root Dir: This line will also show the Linux path, if it is under Windows, it will be the Windows path. The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me. You may also be interested in:
|
<<: The problem of form elements and prompt text not being aligned
>>: Understand CSS3 Grid layout in 10 minutes
Table of contents Shallow copy Deep Copy Replenis...
The cause is that the process opens a number of f...
MySQL foreign key constraint (FOREIGN KEY) is a s...
Illustrated CentOS 7.3 installation steps for you...
Table of contents Implementation ideas There are ...
1. Ubuntu Server 18.04.5 LTS system installation ...
1. overflow:hidden overflow hidden If overflow:hi...
When writing my own demo, I want to use display:f...
docker-compose-monitor.yml version: '2' n...
When we perform automatic discovery, there is alw...
The application scenario is: the iframe page has n...
Install boost There are many ways to call C/C++ f...
When writing a Dockerfile, include an entrypoint ...
Mac node delete and reinstall delete node -v sudo...
Table of contents 1. Overview 2. Parameters for c...