怎么重启docker
时间: 2023-10-09 14:09:28 浏览: 83
要重启Docker服务,可以使用以下命令之一:
1. `systemctl restart docker`
2. `service docker restart`
3. `sudo systemctl daemon-reload` (守护进程重启)
如果要重启一个已经停止的容器实例,可以使用以下命令之一:
1. `docker start CONTAINER_ID`
2. `docker restart CONTAINER_ID`
请注意,CONTAINER_ID需要替换为要重启的容器实例的实际ID。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [docker启动,重启,关闭命令](https://blog.csdn.net/WuLex/article/details/120880396)[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%"]
- *2* [docker启动命令,docker重启命令,docker关闭命令](https://blog.csdn.net/web15085181368/article/details/124525612)[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 ]
阅读全文