From c0436fd225f93821c9719c337f457c65731ee2ed Mon Sep 17 00:00:00 2001 From: Eric de Ruiter Date: Mon, 9 Mar 2020 16:48:05 +0100 Subject: [PATCH] Append domain name to host name --- hoster.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hoster.py b/hoster.py index 1e762e8..9f634bc 100644 --- a/hoster.py +++ b/hoster.py @@ -62,6 +62,8 @@ def get_container_data(dockerClient, container_id): container_hostname = info["Config"]["Hostname"] container_name = info["Name"].strip("/") container_ip = info["NetworkSettings"]["IPAddress"] + if info["Config"]["Domainname"]: + container_hostname = container_hostname + "." + info["Config"]["Domainname"] result = []