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
Mysql query time period intersection Usage scenar...
This article is based on the Free Code Camp Basic...
1. A static page means that there are only HTML ta...
This article shares the specific code of JavaScri...
Table of contents Preface Virtual DOM What is Vir...
Table of contents map filter some every findIndex...
Table of contents Preface 1. Create objects befor...
•There are many selectors in CSS. What will happe...
Preface Components are something we use very ofte...
The offline installation method of MySQL_8.0.2 is...
Linux file permissions First, let's check the...
1. Add fields: alter table table name ADD field n...
Install MySQL for the first time on your machine....
When I first started, I found a lot of errors. In...
Table of contents Starting from type judgment Str...