I’m just beginning to learn about docker and I’m also using docker-compose, I’m using it as mentioned above on Ubuntu 18.04
All works as expected however when doing some builds that have dependencies on images on our corporate Git server I get errors which indicate that resources are unavailable.
I am working from home at the moment (COVID-19) and the Git server (and other SSO resources) can only be accessed from within the corporate net, thus I VPN in. I’m using Cisco AnyConnect as the VPN system.
It would appear that’s working, but I can see brief notifications when some parts of the build are occurring the network is disconnecting. The Cisco client however shows that it never dropped its connection. Some reading yielded an interesting solution which I’d like to understand. The solution given is below and did not work as I still get failures to resolve things like http://security.debian.org…
I feel that its related to something like this.
Apparently the problem was, indeed, an IP-conflict between the docker0 bridge and an IP-range in one of the static routes.
I had already tried to assign a new IP-address to the docker0 bridge, by inserting a “bip”-entry by entering the command
sudo nano /etc/docker/daemon.json
and editing the file to make it look somewhat similar to this.{ "bip":"171.2.2.0/8" }
but all the other addresses I tried resulted in
sudo systemctl restart docker
failing spectacularly.I had (still dont have) no idea what IP-address to choose, so this
171.2.2.0/8
was a lucky guess I suppose. Maybe it will cause problems later, but that’s another story.