From 17f35ef7059ae8eca156e5c2e26c515044e75ee8 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Sat, 29 Oct 2016 17:49:21 +1300 Subject: [PATCH] fix(container-creation): fix default network on Windows platform (#298) --- app/components/createContainer/createContainerController.js | 3 +++ 1 file changed, 3 insertions(+) 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"); });