From bfdb4dba12dd50a397cf90aed104c6149df75985 Mon Sep 17 00:00:00 2001 From: xAt0mZ Date: Wed, 26 Feb 2020 04:31:59 +0100 Subject: [PATCH] fix(container-creation): validate runtime property (#3581) Co-authored-by: linquize --- app/docker/views/containers/create/createContainerController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/docker/views/containers/create/createContainerController.js b/app/docker/views/containers/create/createContainerController.js index a1e2ce8c5..dfffcf3be 100644 --- a/app/docker/views/containers/create/createContainerController.js +++ b/app/docker/views/containers/create/createContainerController.js @@ -594,7 +594,7 @@ function ($q, $scope, $async, $state, $timeout, $transition$, $filter, Container SystemService.info() .then(function success(data) { - $scope.availableRuntimes = Object.keys(data.Runtimes); + $scope.availableRuntimes = data.Runtimes ? Object.keys(data.Runtimes) : []; $scope.config.HostConfig.Runtime = ''; $scope.state.sliderMaxCpu = 32; if (data.NCPU) {