服务环境报错
[root@docker]# docker ps -a
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
解决方式
启动daemon
systemctl daemon-reload
重启docker
systemctl restart docker.service
校验
[root@docker]# docker-compose ps
Name Command State Ports
------------------------------
[root@docker]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@docker]#
本文只做学习参考,如有任何不准确的地方欢迎指正。
我的邮箱:
lulongji2011@163.com