docker 安装好后运行命令:

docker images

 提示错误如下:

Get http:///var/run/docker.sock/v1.19/images/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
#或下面提示
Post http:///var/run/docker.sock/v1.19/images/create?fromImage=ubuntu%3Alatest: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

 解决问题如下:

 

service docker restart

sudo /sbin/chkconfig --add docker

sudo /sbin/chkconfig --list docker

sudo /sbin/chkconfig docker on

service docker restart

然后就可以尽情的玩耍了

 

相关文章:

  • 2021-12-11
  • 2021-07-09
  • 2021-11-28
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
猜你喜欢
  • 2022-12-23
  • 2021-10-28
  • 2022-02-20
  • 2021-12-28
  • 2021-06-05
  • 2021-07-23
  • 2021-07-01
相关资源
相似解决方案