在CentOS上启动Docker服务,常用方法如下:
systemctl status docker
sudo systemctl start docker
sudo systemctl enable docker
service docker status
service docker start
chkconfig docker on
注意事项:
sudo
启动后,可通过docker run hello-world验证是否正常运行。
docker run hello-world