Merge pull request #1208 from Luap99/macvlan-dns
libnetwork/netavark: disable dns for macvlan
This commit is contained in:
commit
2533870d24
|
|
@ -170,6 +170,11 @@ func createMacvlan(network *types.Network) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// always turn dns off with macvlan, it is not implemented in netavark
|
||||||
|
// and makes little sense to support with macvlan
|
||||||
|
// see https://github.com/containers/netavark/pull/467
|
||||||
|
network.DNSEnabled = false
|
||||||
|
|
||||||
// we already validated the drivers before so we just have to set the default here
|
// we already validated the drivers before so we just have to set the default here
|
||||||
switch network.IPAMOptions[types.Driver] {
|
switch network.IPAMOptions[types.Driver] {
|
||||||
case "":
|
case "":
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ type Network struct {
|
||||||
// to public or other Networks.
|
// to public or other Networks.
|
||||||
Internal bool `json:"internal"`
|
Internal bool `json:"internal"`
|
||||||
// DNSEnabled is whether name resolution is active for container on
|
// DNSEnabled is whether name resolution is active for container on
|
||||||
// this Network.
|
// this Network. Only supported with the bridge driver.
|
||||||
DNSEnabled bool `json:"dns_enabled"`
|
DNSEnabled bool `json:"dns_enabled"`
|
||||||
// Labels is a set of key-value labels that have been applied to the
|
// Labels is a set of key-value labels that have been applied to the
|
||||||
// Network.
|
// Network.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue