docker restart -v
时间: 2023-08-23 15:11:10 浏览: 129
回答: 当使用docker restart命令重启容器时,不会重新创建挂载的卷。挂载的卷是在容器创建时与主机目录进行绑定的,因此即使重启docker服务,挂载的目录仍然存在。\[2\]所以,使用docker restart命令时,不会重新挂载卷。
#### 引用[.reference_title]
- *1* [docker参数--restart=always](https://blog.csdn.net/LG_15011399296/article/details/124588960)[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^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [docker run -v 详解](https://blog.csdn.net/weixin_45131345/article/details/119875538)[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^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文