DEV Community

Discussion on: You Rang, M'Lord? Docker in Docker with Jenkins declarative pipelines

tapaibalazs profile image
Tápai Balázs Author • Edited on

Update: The reason why the IPAddress property does not work and the Gateway does is that docker creates a bridge network when the build container starts. In such setup, every request goes through the gateway which uses NAT rules to forward the request to the proper container. So when we start another container inside the build container, we have to send requests to the gateway address because that handles the forwarding. Pretty neat.