启动docker服务
systemctl start docker

停止docker服务
systemctl stop docker
重启docker服务
systemctl restart docker
查看docker服务状态
systemctl status docker
设置开机启动docker服务
systemctl enable docker

设置关闭开机启动docker服务
systemctl disable docker

重载系统服务
systemctl daemon-reload

查看全部服务
systemctl list-unit-files --type service

搜索镜像
docker search hello-world

拉去镜像
docker pull hello-world

查看本地镜像
docker images
运行镜像
docker run hello-world

查看所有的容器
docker ps -a
问题1
当关闭docker时候提示:Warning: Stopping docker.service, but it can still be activated by:
docker.socket

执行下面命令
systemctl stop docker.socket



