Docker tips and tricks

From Lolly's Wiki
Revision as of 14:27, 10 June 2020 by Lollypop (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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