N
N
Nikolay Baranenko2018-05-13 20:30:05
CentOS
Nikolay Baranenko, 2018-05-13 20:30:05

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/

trying to collect
[[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

How to solve this problem?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
V
Vladimir Dubrovin, 2018-05-13
@z3apa3a

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 question

Ask a Question

731 491 924 answers to any question