Which docker CLI commands will use the proxy configuration in the ~/.docker/daemon.json?
{
"proxies": {
"default": {
"allProxy": "http://DAEMON.com:3128"
}
}
}
I suppose the commands below but anything else?
- login
- push
- pull
- build
Docker is a client-server application, and the server side affects things done directly by the server. From the documentation, that includes:
The daemon uses a proxy server to access images stored on Docker Hub and other registries, and to reach other nodes in a Docker swarm.
For configuring the client side, and the configuration of deployed containers, there is a second proxy configuration you need to perform in ~/.docker/config.json:
{
"proxies": {
"default": {
"httpProxy": "http://proxy.example.com:3128",
"httpsProxy": "https://proxy.example.com:3129",
"noProxy": "*.test.example.com,.example.org,127.0.0.0/8"
}
}
}