How to set network proxy for Docker
Sometimes, you may encounter network problems, at this time, you need set proxy through daemon
file of docker.
Daemon Config
The config file of docker located at: /etc/docker/daemon.json
If the config file doesn’t exit, you should create one.
And past the content below to the config file.
1 | { |
Restart Docker
1 | sudo systemctl restart docker |
Reference
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments