Docker常用命令(启动、卸载、重启)
帮助启动类命令:
启动docker: systemctl start docker
停止docker: systemctl stop docker
重启docker: systemctl restart docker
查看docker状态:systemctl status docker
开机启动:systemctl enable docker
查看docker概要信息:docker info
查看docker总体帮助文档:docker --help
查看docker命令帮助文档:docker 具体命令 --help
问题处理:
Warning: Stopping docker.service, but it can still be activated by:
docker.socket
如果不想被访问时自动启动服务
输入命令:
systemctl stop docker.socket