exec /bin/bash
时间: 2023-09-23 22:02:41 浏览: 155
"exec /bin/bash"命令是用来在Docker容器中执行/bin/bash命令行的。在Docker容器中,通过使用"docker exec -it 容器 /bin/bash"命令行,可以进入容器的交互式终端,其中"-it"参数表示以交互模式进入终端,并执行/bin/bash命令。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [docker 命令之 exec 的理解与运用](https://blog.csdn.net/weixin_47952981/article/details/124760745)[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_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [shell进阶](https://blog.csdn.net/weixin_43599240/article/details/88787722)[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_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文