Bug 1273598

Summary: docker looses /etc/hosts
Product: Red Hat Enterprise Linux 7 Reporter: Subhendu Ghosh <sghosh>
Component: docker-latestAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: ajia, ghelleks, lsm5, lsu, royoung
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 14:54:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1303656, 1305185    

Description Subhendu Ghosh 2015-10-20 18:40:48 UTC
Description of problem:
https://github.com/docker/docker/issues/17190

Docker 1.8 has a race condition and can corrupt /etc/hosts inside a container 

Google is coordinating a temp fix for the distros since upstream is pushing the issue out to upstream 1.9 for a fix.


Expected results:


Additional info:

Comment 1 Daniel Walsh 2015-10-20 18:49:21 UTC
As soon as they have a fix, we can patch this, but I am not sure if we are releasing anything before we ship docker-1.9?

Comment 2 Daniel Walsh 2015-10-28 17:26:34 UTC
Looks like googles fix will be outside of docker.

So we can say this is partially fixed in docker-1.9. With more fixes coming in docker-1.10.

Comment 3 Daniel Walsh 2016-01-06 19:45:55 UTC
Fixed in docker-1.10

Comment 5 Luwen Su 2016-02-03 09:29:54 UTC
In docker-1.9.1-15.el7.x86_64,
use this https://github.com/docker/docker/issues/17190#issuecomment-149437458,
the file looks good
# docker exec test-master cat /etc/hosts
172.17.0.2	f988d8d83483
127.0.0.1	localhost
::1	localhost ip6-localhost ip6-loopback
fe00::0	ip6-localnet
ff00::0	ip6-mcastprefix
ff02::1	ip6-allnodes
ff02::2	ip6-allrouters

Comment 6 Lokesh Mandvekar 2016-02-03 15:53:20 UTC
i'm moving this back to MODIFIED as per Dan's comment and scheduling this for 1.10 update.

Comment 9 Lokesh Mandvekar 2016-04-19 16:10:37 UTC
changing component to docker-latest

Comment 11 Alex Jia 2016-04-29 10:50:18 UTC
It works well on docker-latest-1.10.3-19, so moving the bug to VERIFIED status.

Comment 13 errata-xmlrpc 2016-05-12 14:54:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-1057.html