Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add /etc/nsswitch.conf in Dockerfile #957

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

qingkunl
Copy link
Contributor

When localhost is used as the cluster server in kubeconfig, it cannot be resolved due to missing /etc/nsswitch.conf in the image. kubernetes-sigs/kubespray#6175 is caused by this issue.

A common workaround is to add echo "hosts: files dns" > /etc/nsswitch.conf in Docker file as mentioned by golang/go#22846 (comment).

Copy link
Collaborator

@aauren aauren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks!

@aauren aauren merged commit 3e33a9c into cloudnativelabs:master Jul 27, 2020
@qingkunl qingkunl deleted the add_nsswitch_conf branch July 28, 2020 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants