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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With