Update /etc/hosts when linked container is restarted

Carry of #7092

closes #7092
fixes #6350

/cc @vieux
I'd reword to something like:

> If you restart the source container, Docker will update the `/etc/hosts` file
> of recipient containers with the source's new IP address in order to keep
> the linkage.