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

  

   至此已经成功

猜你喜欢

转载自www.cnblogs.com/yhd-2018/p/12969898.html