How to Setup a Proxy for Docker on Linux | ProxyLine

Опубликовано: 14 Май 2026
на канале: ProxyLine
8
0

Quick guide how to setup a proxy for the Docker platform on Linux!

👉Best individual proxy - proxyline.net

💻Commands from video:
Create a folder for the configuration file:
sudo mkdir -p /etc/systemd/system/docker.service.d

Create the proxy configuration file itself:
sudo nano /etc/systemd/system/docker.service.d/proxy.conf


Enter proxy data into the configuration:
Environment="HTTP_PROXY=http://LOGIN:PASSWORD@IP:PORT"
Environment="HTTPS_PROXY=http://LOGIN:PASSWORD@IP:PORT"
Environment="NO_PROXY=localhost,127.0.0.1,::1,.local,.internal,10.0.0.0/8,192.168.0.0/16,172.16.0.0/12"

Applying the changes:
sudo systemctl daemon-reload

Restarting Docker:
sudo systemctl restart docker

Checking proxy status:
sudo systemctl status docker