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

create minimal nsswitch.conf file in Docker image #1

Closed
wants to merge 1 commit into from

Conversation

2opremio
Copy link
Owner

@2opremio 2opremio commented Jan 3, 2019

As a result, /etc/hosts will be prioritized over DNS queries

This resolves the conflict between:

As a result, /etc/hosts will be prioritized over DNS queries

This resolves the conflict between:
 * fluxd using netgo for static compilation. netgo reads nsswitch.conf to mimic glibc,
   defaulting to prioritize DNS queries over /etc/hosts if nsswitch.conf is missing:
   golang/go#22846
 * Alpine not including a nsswitch.conf file. Since Alpine doesn't use glibc
   (it uses musl), maintainers argue that the need of nsswitch.conf is a Go bug:
   gliderlabs/docker-alpine#367 (comment)
@2opremio 2opremio closed this Jan 3, 2019
2opremio pushed a commit that referenced this pull request Apr 11, 2019
Add parameter and default value in place of hard-coded /dockercfg/config.json
2opremio pushed a commit that referenced this pull request Oct 21, 2019
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.

1 participant