mirror of https://github.com/portainer/portainer
fix(container-create): patch dns (#3556)
parent
97a0ea4a31
commit
0330b16776
|
@ -398,8 +398,12 @@ function ($q, $scope, $async, $state, $timeout, $transition$, $filter, Container
|
|||
}
|
||||
$scope.formValues.MacAddress = d.Config.MacAddress;
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue