當前位置:生活全書館 >

IT科技

> 如何重啟docker服務

如何重啟docker服務

產品型號:Thinkpad E15

系統版本:centos8

重啟docker的方法

重啟docker服務

[root@xuegod63 ~]# systemctl restart docker

重啟docker容器

如何重啟docker服務

[root@xuegod63 ~]# docker ps

[root@xuegod63 ~]# docker restart 1e6339442def

總結:

1、使用systemctl restart重啟docker服務

2、使用docker restart 容器id  重啟容器

標籤: 重啟 docker 服務
  • 文章版權屬於文章作者所有,轉載請註明 https://shqsg.com/zh-hk/dianzi/0wz4g3.html