diff --git a/app/components/createContainer/createContainerController.js b/app/components/createContainer/createContainerController.js index 94adb02ec..257062b97 100644 --- a/app/components/createContainer/createContainerController.js +++ b/app/components/createContainer/createContainerController.js @@ -78,6 +78,9 @@ function ($scope, $state, $stateParams, Config, Info, Container, Image, Volume, networks.push({Name: "none"}); } $scope.availableNetworks = networks; + if (!_.find(networks, {'Name': 'bridge'})) { + $scope.config.HostConfig.NetworkMode = 'nat'; + } }, function (e) { Messages.error("Failure", e, "Unable to retrieve networks"); });