docker run -v workspace
时间: 2023-10-13 18:04:36 浏览: 107
在Docker中,使用docker run命令可以创建并运行容器。其中,-v参数用于挂载目录。如果要使用docker run -v workspace命令,它的作用是将名为workspace的目录挂载到容器中。具体来说,这个命令会将当前工作目录下的workspace目录挂载到运行的容器中,使得容器内可以访问到这个目录。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Docker:docker的基本操作详解](https://blog.csdn.net/sazass/article/details/115027209)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [docker in docker环境下, docker run -v 挂载目录无法获取对应的文件](https://blog.csdn.net/qq_40601372/article/details/114543100)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文