Site Tools

New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)

enable http_proxy for Docker

Here is a link to the official docker doc for proxy http:

A quick outline:

First, create a systemd drop-in directory for the docker service:

mkdir /etc/systemd/system/docker.service.d

Now create a file called /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:


If you have internal Docker registries that you need to contact without proxying you can specify them via the NO_PROXY environment variable:


Flush changes:

$ sudo systemctl daemon-reload

Verify that the configuration has been loaded:

$ sudo systemctl show --property Environment docker

Restart Docker:

$ sudo systemctl restart docker
docker_proxy.txt · Last modified: 2022/07/10 09:34 by