diff --git a/gns3server/compute/docker/__init__.py b/gns3server/compute/docker/__init__.py index 1a13d1af..ea2a63cd 100644 --- a/gns3server/compute/docker/__init__.py +++ b/gns3server/compute/docker/__init__.py @@ -111,7 +111,7 @@ class Docker(BaseManager): body = await response.read() response.close() if body and len(body): - if response.headers['CONTENT-TYPE'] == 'application/json': + if response.headers.get('CONTENT-TYPE') == 'application/json': body = json.loads(body.decode("utf-8")) else: body = body.decode("utf-8") diff --git a/gns3server/compute/docker/docker_vm.py b/gns3server/compute/docker/docker_vm.py index 940aeab6..b662e2e5 100644 --- a/gns3server/compute/docker/docker_vm.py +++ b/gns3server/compute/docker/docker_vm.py @@ -94,7 +94,7 @@ class DockerVM(BaseNode): self._console_websocket = None self._extra_hosts = extra_hosts self._extra_volumes = extra_volumes or [] - self._permissions_fixed = False + self._permissions_fixed = True self._display = None self._closing = False