zadig icon indicating copy to clipboard operation
zadig copied to clipboard

[bug] Workflow build docker image failed if dockerfile have command of pip,yum,npm,etc.

Open N0mansky opened this issue 3 years ago • 0 comments

When I use workflow to build the docker image, it always timeout at pip, yum,npm steps, and curls, wget command always timeout in dind. After I read some blogs, I thought it was dind MTU problem.

So I changed the statefulset of dind and added args '--mtu=1440', and the problem was solved after that.

image

It wouldn't cause this problem if we use a smaller MTU rather than the default 1500 in dind statefulset.

I'll appreciate it if you added this to the documents or use small MTU as the default value for dind statefulset.

My Kubernetes version: v1.21.14 Network plugin: calico-3.13.1 Zadig version: v1.14.0 VM hosts: centos 7.9

References:

  1. https://mlohr.com/docker-mtu/
  2. https://liejuntao001.medium.com/fix-docker-in-docker-network-issue-in-kubernetes-cc18c229d9e5

N0mansky avatar Aug 29 '22 04:08 N0mansky