mirror of
https://github.com/rancher/os.git
synced 2025-10-21 23:58:06 +00:00
Switch network container to privileged and don't use ARP
This commit is contained in:
@@ -116,7 +116,7 @@ func ApplyNetworkConfigs(netCfg *config.NetworkConfig) error {
|
||||
func applyNetConf(link netlink.Link, netConf config.InterfaceConfig) error {
|
||||
if netConf.DHCP {
|
||||
log.Infof("Running DHCP on %s", link.Attrs().Name)
|
||||
cmd := exec.Command("dhcpcd", link.Attrs().Name)
|
||||
cmd := exec.Command("dhcpcd", "-A4", link.Attrs().Name)
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
if err := cmd.Run(); err != nil {
|
||||
|
@@ -210,9 +210,9 @@ func NewConfig() *Config {
|
||||
},
|
||||
},
|
||||
"network": {
|
||||
Image: "network",
|
||||
Image: "network",
|
||||
Privileged: true,
|
||||
Net: "host",
|
||||
Net: "host",
|
||||
Labels: []string{
|
||||
DETACH + "=false",
|
||||
},
|
||||
|
Reference in New Issue
Block a user