Que cherchez-vous ?
< Tous les sujets
Imprimer

Docker – Configurer le proxy

Installer Docker

Sudo apt-get install docker-compose

Configurer le Proxy

Sudo su
Mcedit /lib/system/system/docker.service
EnvironmentFile=/etc/default/docker
Ajouter http_proxy, https_proxy, HTTP_PROXY, HTTPS_PROXY
Systemctl daemon-reload
Service docker restart

Pour Ubuntu

mcedit /etc/systemd/system/docker.service.d/http-proxy.conf

[Service]
Environment="HTTP_PROXY=http://193.49.62.50:8080/" "HTTPS_PROXY=http://193.49.62.50:8080/" "NO_PROXY=localhost,127.0.0.1"

systemctl daemon-reload
systemctl restart docker