Docker cannot be mounted on hard disk under win10 Home Edition

1. Because it is not the win10 professional version, the docker toolbox installation was downloaded when downloading the docker of win10
2. I have set the shared folder of Oracle VM VirtualBox virtual machine
clipboard.png
3. I double-click docker QuickStart terminal to open the virtual machine
clipboard.png
4. Inside the virtual machine, I ran docker run – P 82:80 – P 32000:22 – V / C / mythings: / share / data – t – I CentOS: 6.6 / bin / bash
clipboard.png
clipboard.png
5. However, it failed to mount the hard disk successfully. Open the share / data directory, which is empty
clipboard.png,1. After modifying the VM share, you should use docker machine restart default to restart
2. Flow chart
1.clipboard.png
2.
clipboard.png
3. Use mount to view the mount
clipboard.png
4. When you run the container, the principle is to mount the default host,According to the prompt upstairs, I finally mounted it successfully. Let’s talk about my mounting steps in detail
1. First, I changed my name to data in the Oracle VM VirtualBox setting
clipboard.png
2. Double click docker QuickStart terminal to enter the command line interface, and enter docker machine restart default
3. Then enter docker machine SSH default to enter the virtual machine
clipboard.png
4. Then I mount and find that data has been automatically mounted to a directory called data in the virtual machine, so the name set in the Oracle VM VirtualBox is consistent with the folder name in the default virtual machine
clipboard.png
5. Then I type docker run – P 82:80 – P 32000:22 – V / data /: / Hungary / data – t – I CentOS: 6.6 / bin / bash
After entering the CentOS container, enter DF – H and find that it has been successfully mounted. The main reason why I couldn’t decide before was that the virtual machine was too multi-layered
clipboard.png

Read more here: Source link