Fix Docker in docker network issue in Kubernetes

Liejun Tao
6 min readOct 19, 2019

Write down my experience to resolve a Docker in Docker network issue when doing docker build in Kubernetes

Problem

After writing about my approach to do fast docker build in Kubernetes in this article, I want to build some complex docker images.

A problem hit me hard that I could not download content from “some” places when building the image.

For example, if the Dockerfile has this line, it works well.

RUN curl -L "https://google.com"

--

--