Docker centos7.X日常命令

1.docker 启动,关闭,查看运行状态 CentOS 7

启动docker

systemctl start docker

关闭docker

systemctl stop docker

查看docker的运行状态

systemctl status docker

还有个问题,每当服务器重启,就需要开启docker,有点麻烦,所以设置开启自启动:

systemctl enable docker

猜你喜欢

转载自blog.csdn.net/zhangleiyes123/article/details/107554528
今日推荐