Update /etc/hosts when linked container is restarted

Carry of #7092

closes #7092
fixes #6350

/cc @vieux
I’ve made the changes (will be pushed in a minute) but I think a more global docs edit should be in a different PR.


On Aug 25, 2014, at 9:33 AM, Fred Lifton <notifications@github.com> wrote:

> In docs/sources/reference/run.md:
> 
> > @@ -432,6 +432,9 @@ mechanism to communicate with a linked container by its alias:
> >      $ docker run -d --name servicename busybox sleep 30
> >      $ docker run -i -t --link servicename:servicealias busybox ping -c 1 servicealias
> >  
> > +If you restart the parent container (`servicename` in this case), the child
> Agree with Sonat, and would ask you to please go a step further and simply remove any reference of "parent" or "child" in the docs (I realize it's in the code, c'est la vie). In #7250 we determined it simply is not the right metaphor.
> 
> If you need to get the PR in asap, LMK and I'll make a reminder to go back and edit it myself.
> 
> —
> Reply to this email directly or view it on GitHub.
>