Update /etc/hosts when linked container is restarted

Fix #6350


I'm not sure, I guess you're right