简体   繁体   中英

Get "https://registry-1.docker.io/v2/": proxyconnect tcp: dial tcp 192.168.65.1:3128

docker run -d --name=grafana -p 3000:3000 grafana/grafana-enterprise:9.2.0 Unable to find image 'grafana/grafana-enterprise:9.2.0' locally docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": proxyconnect tcp: dial tcp 192.168.65.1:3128: connect: connection refused.

How to solve this? https://registry-1.docker.io/v2/ the image when tried to access from browser

在此处输入图像描述

I was trying to implement Grafana in Docker by following this .

It is likely you have an internal proxy you need to connect through. You may be able to solve it using the HTTP PROXY instructions for docker: https://docs.docker.com.network/proxy/

After you provided the image I can saw that your corporate proxy is requesting authentication. So, your docker is stopping on this connection step.

Ps.: Proxies are different, so it's important to check with your OPS team which kind of authentication your proxy expects. Anyways, try those steps separately testing again after each one

  1. Configure HTTP(S)_PROXY env variables

Configure HTTP_PROXY and/or HTTPS_PROXY env variables in your WSL like that:

http_proxy=http://username:password@hostname:port
export $http_proxy

and/or

https_proxy=http://username:password@hostname:port
export $https_proxy

Where username and password are to authenticate in proxy and hostname and port are proxy DNS name/IP and (probably) port 3128 as I noticed in your logs

  1. Configure Docker desktop proxy https://docs.docker.com.network/proxy/

  2. In case your proxy is requiring NTLM authentication, you might have more issues. I would say you will need to try something like that > https://askubuntu.com/questions/1121521/how-to-configure-http-proxy-with-authentication-on-ubuntu-wsl-on-windows-10

Workaround: Before doing any suggested steps, you can try to pull the docker image using private inte.net access such as a 4G or your home wifi. It will isolate your problem from the proxy thing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM