kind: Copying files/ to / before clean-install, fails base image build

What happened:

$ make -C images/base quick
...<redacted>...
#7 0.150 Installing Packages ...
#7 0.231 Err:1 http://archive.ubuntu.com/ubuntu groovy InRelease
#7 0.231   Something wicked happened resolving 'archive.ubuntu.com:80' (-5 - No address associated with hostname)
#7 0.231 Err:2 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
#7 0.231   Something wicked happened resolving 'archive.ubuntu.com:80' (-5 - No address associated with hostname)
#7 0.231 Err:3 http://security.ubuntu.com/ubuntu groovy-security InRelease
#7 0.231   Something wicked happened resolving 'security.ubuntu.com:80' (-5 - No address associated with hostname)
#7 0.232 Err:4 http://archive.ubuntu.com/ubuntu groovy-backports InRelease
#7 0.232   Something wicked happened resolving 'archive.ubuntu.com:80' (-5 - No address associated with hostname)
...<redacted>...

What you expected to happen: base image is built successfully

How to reproduce it (as minimally and precisely as possible): This failed for me on my Google corp workstation, somehow works fine on Mac.

Anything else we need to know?:

This is most likely coming from us overwriting some of the /etc system files that we copy before running clean-install

https://github.com/kubernetes-sigs/kind/blob/426e03350adbe02b65cea8b4ddcfecd8b8119093/images/base/Dockerfile#L59

~wasn’t able to pinpoint which one exactly, best guess is https://github.com/kubernetes-sigs/kind/blob/main/images/base/files/etc/sysctl.d/10-network-security.conf affecting the networking somehow?~

Some weird interaction with / being the destination ?

Environment:

  • kind version: (use kind version): HEAD
  • Kubernetes version: (use kubectl version): N/A
  • Docker version: (use docker info): 20.10.2
  • OS (e.g. from /etc/os-release): Debian GNU/Linux

/cc @BenTheElder @aojea

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 27 (27 by maintainers)

Most upvoted comments

If we don’t check in the tarball, where are we recording the permissions we desire? In a script that generates a tarball?

heh, I got it now, time for a coffee 😉

what can I say, it is always dns 🙃 , you copy some files to a container and the thing that fails is dns, it is a cursed protocol 🤣