docker info
FATA[0000] Get http:///var/run/docker.sock/v1.18/images/search?term=apache: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
Followed the official instructions @ https://docs.docker.com/articles/systemd/ which seemed to fix docker info but subsequent
docker search <name>
would fail with :
FATA[0127] Error response from daemon: Get https://index.docker.io/v1/search?q=name: dial tcp 162.242.195.84:443: connection timed out
Tried setting the environment variable manually and also running the command inline
https_proxy=http://<server>:<port> docker search <name>
Stumbled across a blog suggesting adding environment variables to /etc/sysconfig/docker
HTTP_PROXY=http://<IP>:<Port>
http_proxy=$HTTP_PROXY
HTTPS_PROXY=$HTTP_PROXY
https_proxy=$HTTP_PROXY
export HTTP_PROXY HTTPS_PROXY http_proxy https_proxy
Problem fixed
No comments:
Post a Comment