1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 05:49:40 +02:00

fix(container-creation): fix default network on Windows platform (#298)

This commit is contained in:
Anthony Lapenna 2016-10-29 17:49:21 +13:00 committed by GitHub
parent 0bdbb4a75d
commit 17f35ef705

View file

@ -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");
});