diff --git a/app/components/createContainer/createContainerController.js b/app/components/createContainer/createContainerController.js index 606e84d04..67704e710 100644 --- a/app/components/createContainer/createContainerController.js +++ b/app/components/createContainer/createContainerController.js @@ -16,6 +16,7 @@ function ($scope, $state, $stateParams, $filter, Config, Info, Container, Contai $scope.config = { Image: '', Env: [], + Cmd: '', ExposedPorts: {}, HostConfig: { RestartPolicy: { @@ -243,6 +244,7 @@ function ($scope, $state, $stateParams, $filter, Config, Info, Container, Contai function prepareConfiguration() { var config = angular.copy($scope.config); + config.Cmd = ContainerHelper.commandStringToArray(config.Cmd); prepareNetworkConfig(config); prepareImageConfig(config); preparePortBindings(config);