docker build throws java.net.AbstractPlainSocketImpl.connect UnknownHostException with jenkins dind slave + kubernetes plugin
Just add --network=host
to docker build
or docker run
.
docker build --network=host foo/bar:latest .
Found the answer here