Answer the question
In order to leave comments, you need to log in
Why don't requests from Docker Container go through proxy?
Hello.
I want to load test the service inside and have the statistics uploaded to https://overload.yandex.net/
for this, when starting the container, I prescribe env
HTTP_PROXY and HTTPS_PROXY
docker run --rm -v /opt/docker/yandex.tank/her.ya.ru:/var/loadtest \
--env HTTP_PROXY="http://user:[email protected]:31310" \
--env HTTPS_PROXY="http://user:[email protected]:31310" \
--net host -it direvius/yandex-tank
ProxyError: HTTPSConnectionPool(host='overload.yandex.net', port=443)
sudo systemctl daemon-reload
sudo systemctl restart docker.service
sudo systemctl show --property Environment docker
Environment=HTTP_PROXY=http://user:pwd@proxy.my:31310/ HTTPS_PROXY=http://user:pwd@proxy.my:31310/ NO_PROXY=localhost,127.0.0.0/8,her.ya.ru
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question