Docker安装后报错:docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

安装Docker以后执行 docker run hello-world 进行测试

结果报错如下:

 

解决办法:

  # systemctl daemon-reload

  # sudo service docker restart

  # sudo service docker status 确认docker正常启动

  

   # docker run hello-world

  

   至此已经成功

===========所有内容均为本人学习所用,如有侵权问题请联系本人。=============== ======================但行好事 莫问前程========================
原文地址:https://www.cnblogs.com/yhd-2018/p/12969898.html