docker重新进入容器命令
时间: 2023-09-23 12:04:32 浏览: 99
Docker如何进入启动容器
回答: 重新进入容器的命令是docker exec -it [容器ID或容器名称 /bin/bash。这条命令允许您再次进入正在运行的容器,并使用交互式的shell操作。如果在执行时遇到错误,提示“/bin/bash: no such file or directory”,可以尝试使用/bin/sh替代/bin/bash进行进入容器操作,命令是docker exec -it [容器ID或容器名称 /bin/sh。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [docker常用操作命令。](https://blog.csdn.net/m0_64818669/article/details/125999933)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [docker进入容器命令](https://blog.csdn.net/qq_37726813/article/details/127271007)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文