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

Ensure nsswitch.conf config for netgo #441

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

yosifkit
Copy link
Member

Alpine 3.16 has updated to include an nsswitch.conf. But we need to ensure 3.15 still works as well.

Step 1/10 : FROM alpine:3.15
Step 3/10 : RUN set -eux; 	if [ -e /etc/nsswitch.conf ]; then 		grep '^hosts: files dns' /etc/nsswitch.conf; 	else 		echo 'hosts: files dns' > /etc/nsswitch.conf; 	fi
 ---> Running in 79d0f913ddf7
+ '[' -e /etc/nsswitch.conf ]
+ echo 'hosts: files dns'
Step 1/10 : FROM alpine:3.16
...
Step 3/10 : RUN set -eux; 	if [ -e /etc/nsswitch.conf ]; then 		grep '^hosts: files dns' /etc/nsswitch.conf; 	else 		echo 'hosts: files dns' > /etc/nsswitch.conf; 	fi
 ---> Running in b9440f91dc03
+ '[' -e /etc/nsswitch.conf ]
+ grep '^hosts: files dns' /etc/nsswitch.conf

Related to docker-library/docker#384

@Heviwulansari

This comment was marked as off-topic.

@tianon tianon merged commit 9ef8e7c into docker-library:master Nov 15, 2022
@tianon tianon deleted the nsswitch branch November 15, 2022 00:50
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Nov 15, 2022
Changes:

- docker-library/golang@9ef8e7c: Merge pull request docker-library/golang#441 from infosiftr/nsswitch
- docker-library/golang@b9c8662: Ensure nsswitch.conf config for netgo
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.

3 participants