Update /etc/hosts when linked container is restarted

Carry of #7092

closes #7092
fixes #6350

/cc @vieux
We should flip this sentence so the context is at the beginning where it can be more helpful. So, 

Because Docker may assign a different IP address to the linked containers on restart, Docker updates the ALIAS entry in the `/etc/hosts` file of the recipient containers.