`docker build` has no network access · Issue #26120 · moby ...
github.com › moby › mobyAug 29, 2016 · For the past couple of years, I would periodically enter this state where neither docker build, nor my containers themselves would have network access. I could get access in my containers by running docker run --net=host, but the build process would still be lacking network. I would workaround it by the solution described here: #866 (comment)
Container host unreachable inside Docker container · Issue ...
github.com › moby › mobyJul 06, 2016 · I think this should be solved by docker: whenever a bridge network is created, a firewall rule should be set to allow the container to reach the host on it's own exposed (host) port. Steps to reproduce (ubuntu 16.04 with docker 1.11.2 and 1.12.0, fedora 21 with docker 1.9.1): $ sudo iptables -P INPUT DROP $ docker network create -d bridge mynetwork