- Create directory
1 | mkdir -p /etc/systemd/system/docker.service.d |
- create proxy file
1 | vim /etc/systemd/system/docker.service.d/http-proxy.conf |
- modify file
1 | [Service] |
- save & flush
1 | systemctl daemon-reload |
- verify
1 | systemctl show --property=Environment docker |
https://www.cnblogs.com/atuotuo/p/7298673.html
https://docs.docker.com/config/daemon/systemd/#httphttps-proxy