Answer the question
In order to leave comments, you need to log in
How to solve the problem of building a docker container through a proxy: TLS handshake timeout?
Hello.
I'm trying to build a docker container,
Internet resources are available only through a proxy,
I registered it as written in method 2 here,
restarted the service, checked it with the command
[[email protected] docker]# systemctl show docker --property Environment
Environment=HTTPS_PROXY=https://user1:[email protected]:1001/
[[email protected] newapp]# docker build -f Dockerfile -t newapp .
Sending build context to Docker daemon 40.45kB
Step 1/32 : FROM python:2.7
Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout
Answer the question
In order to leave comments, you need to log in
Most likely it should be
HTTPS_PROXY= http://user1:[email protected]:1001
/ it is https:// for a proxy that is a rare and non-standard thing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question