|
|
|
@ -12,7 +12,9 @@ function ($scope, $state, $stateParams, $filter, Config, Info, Container, Contai
|
|
|
|
|
Registry: '',
|
|
|
|
|
NetworkContainer: '',
|
|
|
|
|
Labels: [],
|
|
|
|
|
ExtraHosts: []
|
|
|
|
|
ExtraHosts: [],
|
|
|
|
|
IPv4: '',
|
|
|
|
|
IPv6: ''
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.imageConfig = {};
|
|
|
|
@ -34,6 +36,9 @@ function ($scope, $state, $stateParams, $filter, Config, Info, Container, Contai
|
|
|
|
|
ExtraHosts: [],
|
|
|
|
|
Devices:[]
|
|
|
|
|
},
|
|
|
|
|
NetworkingConfig: {
|
|
|
|
|
EndpointsConfig: {}
|
|
|
|
|
},
|
|
|
|
|
Labels: {}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -267,6 +272,13 @@ function ($scope, $state, $stateParams, $filter, Config, Info, Container, Contai
|
|
|
|
|
}
|
|
|
|
|
config.HostConfig.NetworkMode = networkMode;
|
|
|
|
|
|
|
|
|
|
config.NetworkingConfig.EndpointsConfig[networkMode] = {
|
|
|
|
|
IPAMConfig: {
|
|
|
|
|
IPv4Address: $scope.formValues.IPv4,
|
|
|
|
|
IPv6Address: $scope.formValues.IPv6
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.formValues.ExtraHosts.forEach(function (v) {
|
|
|
|
|
if (v.value) {
|
|
|
|
|
config.HostConfig.ExtraHosts.push(v.value);
|
|
|
|
|