customink-webops / hostsfile

Easily manage your hosts file with Chef
Apache License 2.0
155 stars 82 forks source link

Disable atomic updates when running inside Docker container #78

Closed hrak closed 8 years ago

hrak commented 8 years ago

Detect if we are running inside a Docker container. Disable atomic_update on the /etc/hosts file resource if so.

This is a fix for issue #77

thoutenbos commented 8 years ago

@sethvargo any chance to get this merged in?

tas50 commented 8 years ago

Thanks @hrak

ramezjm commented 8 years ago

Hey @tas50 Any chance of a version bump + new release for this cookbook? This fix is not currently available in supermarket. Thanks!

StephenKing commented 7 years ago

Same here. I'm currently blocked by this.