docker search ubuntu
Get http:///var/run/docker.sock/v1.20/images/search?term=ubuntu: dial unix /var/run/docker.sock: no such file or directory.
* Are you trying to connect to a TLS-enabled daemon without TLS?
* Is your docker daemon up and running?

解决方法:

原地址:http://stackoverflow.com/questions/27782595/starting-docker-containers-from-php

  • Add the docker group if it doesn't already exist.

    •   sudo groupadd docker
  • Add the connected user "${USER}" to the docker group. Change the user name to match your preferred user.

    •   sudo gpasswd -a ${USER} docker
  • Restart the Docker daemon:

    •   sudo service docker restart

  • If you are on Ubuntu 14.04 and up use docker.io instead:

    •   sudo service docker.io restart

如果还有问题就sudo reboot吧

 

相关文章:

  • 2021-10-30
  • 2021-09-04
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
  • 2021-07-06
  • 2022-02-03
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2021-06-03
  • 2021-08-12
  • 2022-12-23
  • 2022-02-21
相关资源
相似解决方案