mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Include nsswitch so golang will read /etc/hosts file in docker container
This commit is contained in:
parent
561bc96049
commit
24fa3785a4
@ -9,6 +9,8 @@ RUN cd image/bin && \
|
||||
|
||||
FROM scratch
|
||||
COPY --from=base /image /
|
||||
RUN mkdir -p /etc && \
|
||||
echo 'hosts: files dns' > /etc/nsswitch.conf
|
||||
RUN chmod 1777 /tmp
|
||||
VOLUME /var/lib/kubelet
|
||||
VOLUME /var/lib/rancher/k3s
|
||||
|
Loading…
Reference in New Issue
Block a user