When using docker, you may find that the file cannot be mounted. This is related to the shared folder settings of the virtual machine, and you must pay attention to certain things when setting it up. Otherwise, even if the shared folder is set up, it cannot be mounted. First, open Oracle VM VirtualBox, select the default virtual machine, right-click to open the settings interface (as shown in the figure), and select the shared folder. Set up as follows: Enter this command in cmd, which corresponds to the first shared folder docker run -v /c/Users/test:/test -t -i ubuntu /bin/bash Look at this one again, it corresponds to the second shared folder docker run -v /code/test:/test -t -i ubuntu /bin/bash It can be seen that c/Users in the directory after -v is the name of the shared folder. This means that when you write the directory to be mounted, you need to replace the real directory with the name of the shared folder. You cannot write it as docker run -v /e/file/AICS/code/test:/test -t -i ubuntu /bin/bash, otherwise it will not be mounted. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: How to use Javascript to generate smooth curves
>>: MySQL 5.7.18 zip version installation tutorial
Fault description percona5.6, mysqldump full back...
When using MySQL database, you often encounter su...
Problem description (what is keep-alive) keep-ali...
Today I learned to install MySQL, and some proble...
Table of contents 1. Introduction to jQuery 2. jQ...
Since the problem occurred rather suddenly and th...
1. Traditional binlog master-slave replication, s...
This article records the installation tutorial of...
Table of contents 1. Routing and page jump 2. Int...
Summarize 1. Similarities Both can change the int...
Table of contents Why do we need partitions? Part...
Today, the error "No input file specified&qu...
CSS3 can create animations, which can replace man...
Achieve resultsImplementation Code html <base ...
Anyone who has used the Linux system should know ...