diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2019-09-16 17:18:17 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2019-09-16 17:57:14 +0200 |
commit | 90cd9b2c1ddefffa6a02addbc24718fd2e9bf3d7 (patch) | |
tree | 5101a1a83ae69b7bc78bc177ad7f1652e0555be2 /mcp/scripts/docker-compose/files/hosts | |
parent | 09ec1e9cc02268c45d5cfd5a289b53a52d9c6e94 (diff) |
docker-compose: Align hosts with hostnamestable/hunter
When using Docker CE 19.x, `hostname -d` fails to properly resolve
the domainname due to changes in the way Docker sets it inside the
container.
Work around this issue by aligning the contents of `/etc/hostname`
with `/etc/hosts`, so `hostname -d` can properly determine the
domain name. This also requires calling `hostname -b` via cfg01
entrypoint.sh.
Change-Id: I697b5d9882e3d6641712a00bca10012800ee1898
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/scripts/docker-compose/files/hosts')
-rw-r--r-- | mcp/scripts/docker-compose/files/hosts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/mcp/scripts/docker-compose/files/hosts b/mcp/scripts/docker-compose/files/hosts deleted file mode 100644 index 473184145..000000000 --- a/mcp/scripts/docker-compose/files/hosts +++ /dev/null @@ -1,6 +0,0 @@ -127.0.0.1 localhost -::1 localhost ip6-localhost ip6-loopback -fe00::0 ip6-localnet -ff00::0 ip6-mcastprefix -ff02::1 ip6-allnodes -ff02::2 ip6-allrouters |