mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
fix(container-creation): fix default network on Windows platform (#298)
This commit is contained in:
parent
0bdbb4a75d
commit
17f35ef705
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ function ($scope, $state, $stateParams, Config, Info, Container, Image, Volume,
|
||||||
networks.push({Name: "none"});
|
networks.push({Name: "none"});
|
||||||
}
|
}
|
||||||
$scope.availableNetworks = networks;
|
$scope.availableNetworks = networks;
|
||||||
|
if (!_.find(networks, {'Name': 'bridge'})) {
|
||||||
|
$scope.config.HostConfig.NetworkMode = 'nat';
|
||||||
|
}
|
||||||
}, function (e) {
|
}, function (e) {
|
||||||
Messages.error("Failure", e, "Unable to retrieve networks");
|
Messages.error("Failure", e, "Unable to retrieve networks");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue