Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove docker proxy settings?

Please advise how to remove docker proxy settings,
I remember that I had set docker to use proxy initially and I removed file from /etc/systemd/system/docker.service.d.

I am trying to execute following command

sudo docker build -t <image_name> .

Is there a way to run docker command with no_proxy using --build-arg? Please advise

Thanks

like image 388
Mike730 Avatar asked Oct 18 '25 15:10

Mike730


1 Answers

after removing http-proxy.conf file from /etc/systemd/system/docker.service.d. you have to reload daemon and restart docker service.

sudo systemctl daemon-reload
sudo systemctl restart docker 

you can verify how http proxy and https proxy are valued with the command below

sudo docker info

or with the command

sudo systemctl show --property=Environment docker
like image 99
grome55 Avatar answered Oct 21 '25 06:10

grome55



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!