Docker tips and tricks: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
(Created page with "== Using docker behind a proxy == <source lang=bash> # systemctl edit docker.service </source> Enter the next three lines and save: <source lang=ini> [Service] Environment="H...") |
(No difference)
|
Revision as of 13:27, 10 June 2020
Using docker behind a proxy
# systemctl edit docker.service
Enter the next three lines and save:
[Service]
Environment="HTTP_PROXY=user:pass@proxy:port"
Environment="HTTPS_PROXY=user:pass@proxy:port"
Restart docker:
# systemctl restart docker.service