If you’re behind a proxy, just add a line with proxy information (user and pass only if necessary).
SO: F20/21/22 or Centos7
Edit /etc/sysconfig/docker file
SO: Ubuntu, Debian
Edit /etc/defaults/docker file
1 |
http_proxy="http://<user_name><passwd>@<proxy_ip>:<proxy_port>" |