mirror of https://github.com/portainer/portainer
fix(container-creation): fix default network on Windows platform (#298)
parent
0bdbb4a75d
commit
17f35ef705
|
@ -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");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue