From cf25e276040da43dff2bb3e7cf5247fb75126878 Mon Sep 17 00:00:00 2001 From: Torben Brenner Date: Thu, 12 Oct 2023 17:00:42 +0200 Subject: [PATCH] docs: corrected link for docker daemon proxy configuration --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d50c8a..b3f92a0 100644 --- a/README.md +++ b/README.md @@ -354,8 +354,28 @@ Installation under WSL ought to work, but we have not tested this. ### Docker Daemon Proxy Configuration -Docker has a background daemon, responsible for downloading images and starting them. Sometimes, proxy configuration from your system won't carry over and it will fail to download images. In that case, configure the proxy for this daemon as described in the [official documentation](https://docs.docker.com). +Docker has a background daemon, responsible for downloading images and starting them. Sometimes, proxy configuration from your system won't carry over and it will fail to download images. In that case, you'll need to configure the proxy inside the system unit of docker by creating the file `/etc/systemd/system/docker.service.d/proxy.conf` with following content +``` ini +[Service] +Environment="HTTP_PROXY=http://proxy.example.com:3128" +Environment="HTTPS_PROXY=https://proxy.example.com:3129" +Environment="NO_PROXY=localhost,127.0.0.1,docker-registry.example.com,.corp" +``` + +After saving the configuration file, you'll need to reload the system daemon for the changes to take effect + +``` shell +sudo systemctl daemon-reload +``` + +and restart the docker daemon + +``` shell +sudo systemctl restart docker +``` + +For more information, please consult the [official documentation](https://docs.docker.com/config/daemon/systemd/#httphttps-proxy). ### Monitoring