How to configure docker to use proxy?

0 votes

Hi Guys,

I am trying to configure proxy to connect the server running inside Docker. It does not have direct access to the Internet. How can I do that?

May 12 in Docker by akhtar
• 25,030 points
132 views

1 answer to this question.

0 votes

Hi@akhtar,

You can configure proxy variables in the /etc/sysconfig/docker file. For reference use the bellow given syntax

$ cat /etc/sysconfig/docker
export HTTP_PROXY="http://USERNAME:PASSWORD@[your.proxy.server]:[port]"
export HTTPS_PROXY="https://USERNAME:PASSWORD@[your.proxy.server]:[port]"

Hope this will help you.

answered May 12 by MD
• 56,480 points

Related Questions In Docker

0 votes
1 answer

How to configure my docker container to use a different logging driver?

When you start a docker container, you ...READ MORE

answered Jul 4, 2019 in Docker by Sirajul
• 57,940 points
249 views
0 votes
1 answer

How to make ‘Docker for windows’ use another VM besides MobylinuxVM?

docker-machine env can output the environment for cmd ...READ MORE

answered Aug 16, 2018 in Docker by Sophie may
• 10,100 points
624 views
+1 vote
0 answers

How can I map a docker location to my Jenkins workspace so that I can use the files in my Jenkins

Hey guys, I was trying to execute few ...READ MORE

Feb 25 in Docker by dineshkumar
• 130 points
1,437 views
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 15,731 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,640 points
775 views
0 votes
1 answer

How to configure wordpress tool using docker-compose?

Hi@akhtar, You can download wordpress image from docker hub. WordPress is ...READ MORE

answered Apr 24 in Docker by MD
• 56,480 points
145 views
0 votes
1 answer

How to configure Grafana on Docker?

Hi@akhtar, You need to pull the Grafana image ...READ MORE

answered Sep 6 in Docker by MD
• 56,480 points
44 views