From 988ca7574cd102d3025b751c39a6dc41ab24f20a Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 8 Jun 2022 01:07:31 +0800 Subject: [PATCH] Add hostname entry to sample network config for Docker nodes. Fixes #2039 --- gns3server/compute/docker/docker_vm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/compute/docker/docker_vm.py b/gns3server/compute/docker/docker_vm.py index e27ef526..d8787100 100644 --- a/gns3server/compute/docker/docker_vm.py +++ b/gns3server/compute/docker/docker_vm.py @@ -314,7 +314,8 @@ class DockerVM(BaseNode): # DHCP config for eth{adapter} #auto eth{adapter} #iface eth{adapter} inet dhcp -""".format(adapter=adapter)) +#hostname {hostname} +""".format(adapter=adapter, hostname=self._name)) return path async def create(self):