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
• 11,270 points
32 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
• 24,500 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
• 53,110 points
147 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
• 9,940 points
571 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
553 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,200 points

edited Oct 16, 2018 by lina 11,779 views
0 votes
1 answer
0 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,530 points
542 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
• 24,500 points
88 views
0 votes
1 answer

How to create our own docker image?

Hi@akhtar, There are two ways to create docker ...READ MORE

answered Mar 11 in Docker by MD
• 24,500 points
73 views