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
Table of contents 1. Experimental Environment 2. ...
Table of contents Passing parameters between pare...
1. Check BIOS First check which startup mode your...
Table of contents Preface Dockerfile What is a Do...
This article example shares the specific code of ...
For detailed documentation on installing the comp...
Table of contents Prefab How to create a prefab T...
Table of contents Common array methods concat() M...
When developing a website function, the session c...
The following error is reported when MySQL joins ...
The form elements with visibility=hidden and displ...
Founder Type Library is a font library developed ...
Table of contents 1. Introduction 2. Thought Anal...
1. Ubuntu Server 18.04.5 LTS system installation ...
Without further ado, let's get straight to th...