-
Notifications
You must be signed in to change notification settings - Fork 617
Closed
Description
Using buildx with any image different than master fails on RUN statements that use curl, it fails trying to resolve the url, however, previous RUN statements using apt work fine.
It works with the master image, tried to use host-network and same result
=> ERROR [linux/amd64 build 11/17] RUN cat /etc/resolv.conf && curl www.github.com 1.6s
------
> [linux/amd64 build 11/17] RUN cat /etc/resolv.conf && curl www.github.com:
#16 1.063 # This file is managed by man:systemd-resolved(8). Do not edit.
#16 1.063 #
#16 1.063 # This is a dynamic resolv.conf file for connecting local clients directly to
#16 1.063 # all known uplink DNS servers. This file lists all configured search domains.
#16 1.063 #
#16 1.063 # Third party programs must not access this file directly, but only through the
#16 1.063 # symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
#16 1.063 # replace this symlink by a static file or a different symlink.
#16 1.063 #
#16 1.063 # See man:systemd-resolved.service(8) for details about the supported modes of
#16 1.063 # operation for /etc/resolv.conf.
#16 1.063
#16 1.063 nameserver 192.168.1.1
#16 1.063 search lan
#16 1.068 curl: (6) getaddrinfo() thread failed to start
#16 1.068
------
Dockerfile:128
--------------------
126 | && systemctl enable kubelet.service
127 |
128 | >>> RUN cat /etc/resolv.conf && curl www.github.com
129 |
130 | RUN echo "Installing containerd ..." \
--------------------
error: failed to solve: process "/bin/sh -c cat /etc/resolv.conf && curl www.github.com" did not complete successfully: exit code: 6
make: *** [/home/aojea/go/src/sigs.k8s.io/kind/images/base/../Makefile.common.in:20: build] Error 1
Metadata
Metadata
Assignees
Labels
No labels