This allows registering container hostnames based on a label provided when creating the container.
Conflicts: test/640_proxy_restart_reattaches_test.sh
These tests were introduced in #1065 and #1126.