1.docker 启动,关闭,查看运行状态 CentOS 7
启动docker
systemctl start docker
关闭docker
systemctl stop docker
查看docker的运行状态
systemctl status docker
还有个问题,每当服务器重启,就需要开启docker,有点麻烦,所以设置开启自启动:
systemctl enable docker
启动docker
systemctl start docker
关闭docker
systemctl stop docker
查看docker的运行状态
systemctl status docker
还有个问题,每当服务器重启,就需要开启docker,有点麻烦,所以设置开启自启动:
systemctl enable docker