mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
fix(container-create): patch dns (#3556)
This commit is contained in:
parent
97a0ea4a31
commit
0330b16776
1 changed files with 7 additions and 3 deletions
|
@ -398,9 +398,13 @@ function ($q, $scope, $async, $state, $timeout, $transition$, $filter, Container
|
|||
}
|
||||
$scope.formValues.MacAddress = d.Config.MacAddress;
|
||||
|
||||
$scope.formValues.DnsPrimary = d.HostConfig.Dns[0];
|
||||
$scope.formValues.DnsSecondary = d.HostConfig.Dns[1];
|
||||
|
||||
if (d.HostConfig.Dns && d.HostConfig.Dns[0]) {
|
||||
$scope.formValues.DnsPrimary = d.HostConfig.Dns[0];
|
||||
if (d.HostConfig.Dns[1]) {
|
||||
$scope.formValues.DnsSecondary = d.HostConfig.Dns[1];
|
||||
}
|
||||
}
|
||||
|
||||
// ExtraHosts
|
||||
if ($scope.config.HostConfig.ExtraHosts) {
|
||||
var extraHosts = $scope.config.HostConfig.ExtraHosts;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue