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

Dockerfile: Improve file permissions for docker build images using bind9 #8661

Merged
merged 1 commit into from
Oct 7, 2017

Conversation

jpbetz
Copy link
Contributor

@jpbetz jpbetz commented Oct 7, 2017

This was noticed when attempting to replicate #8608 using the very convenient make docker-dns-srv-test-build command added in #8628.

On some system configurations bind9 failed to start in the container with 'permission denied' errors when accessing the config files added by the Dockerfile. In my case the system configuration was Ubuntu trusty 14.04 and docker 1.12.6.

I'm not entirely clear on why this succeeds on other system configurations, but since /etc/init.d/bind9 runs the daemon as the 'bind' user, setting the config file permissions appropriately seems like the way to go.

/etc/init.d/bind9 is run as the 'bind' user. This fixes file permissions
for the configuration files added by the Dockerfile to match.
@jpbetz jpbetz mentioned this pull request Oct 7, 2017
@jpbetz jpbetz requested a review from gyuho October 7, 2017 07:03
Copy link
Contributor

@gyuho gyuho 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 for the fix!

@gyuho gyuho merged commit a68a3dc into etcd-io:master Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants