aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasteroide <thomas.duval@orange.com>2017-05-10 10:38:55 +0200
committerasteroide <thomas.duval@orange.com>2017-05-10 10:38:55 +0200
commit80ca346a4cb183a6a1e684f6d8a9e19e3fc55d0e (patch)
tree71c7ffdc64854f464a07908552d5e728d6d5b962
parentc3bb5726c3778d272f1ad29ba90af5175474e852 (diff)
Limit the length of the hostname to 63 characters due to the hostname length limitation
Change-Id: I8552b9f29e8bae04d8f6fcaf2085402b2250e7e8
-rw-r--r--moonv4/moon_orchestrator/moon_orchestrator/dockers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/moonv4/moon_orchestrator/moon_orchestrator/dockers.py b/moonv4/moon_orchestrator/moon_orchestrator/dockers.py
index 2eecdc0e..0b53de96 100644
--- a/moonv4/moon_orchestrator/moon_orchestrator/dockers.py
+++ b/moonv4/moon_orchestrator/moon_orchestrator/dockers.py
@@ -148,7 +148,7 @@ RUN pip3 install --upgrade .
output = self.docker.create_container(image=self.tag,
command=list(self.run_cmd),
- hostname=str(self.id.replace("_", "-")),
+ hostname=str(self.id.replace("_", "-"))[:63],
name=str(self.id),
networking_config=self.__get_docker_network(),
host_config=host_config