Open ktdharan opened 2 years ago
@AkihiroSuda -> Is there anything that we should additionally consider ?
Checking to see if any one can help with this info @AkihiroSuda
The proxies configured in your systemd unit will be used by the daemon itself (so for, for example, docker pull
and docker push
), but are not inherited by containers (including containers used during build).
If you need your (build)containers to also use a proxy, you can configure the CLI to set these automatically; https://docs.docker.com/network/proxy/#configure-the-docker-client
Setting that configuration will make the CLI automatically set the corresponding --env HTTP_PROXY=..
when running a container, and --build-arg HTTP_PROXY=...
when building images.
Does that help with your issue?
@thaJeztah -> The understanding is that docker in the rootless mode will have its own networking space . Since we use cntlm as our proxy ( which is essentially http://localhost:3128) and with the understanding that rootless docker does not support localhost , was checking to see how this can be achieved .
Since we use cntlm as our proxy ( which is essentially http://localhost:3128) and with the understanding that rootless docker does not support localhost , was checking to see how this can be achieved .
Haven't checked but I would assume that localhost
on host machine and inside of rootless networks are two different things. If using proxy is mandatory then you need either external proxy server or pointing to cntlm with host machine external IP instead of localhost (and you need make sure that process is listening it).
Description
We are trying to build docker images in the rootless mode , and one of the requirements would to be download the dependencies from the Internet and build our docker images .
Additional details :
1.We have set the proxy details to use in the following location
2.The following are the contents of the http-proxy.conf
3.The output of the docker service running in the rootless mode
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.): We use cntlm as our proxy