Skip to content

Commit 8dd33dc

Browse files
committed
log error instead if disabling IPv6 router advertisement failed
Previously, failing to disable IPv6 router advertisement prevented the daemon to start. An issue was reported by a user that started docker using `systemd-nspawn "machine"`, which produced an error; failed to start daemon: Error initializing network controller: Error creating default "bridge" network: libnetwork: Unable to disable IPv6 router advertisement: open /proc/sys/net/ipv6/conf/docker0/accept_ra: read-only file system This patch changes the error to a log-message instead. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 28277c0 commit 8dd33dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/bridge/setup_device.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func setupDefaultSysctl(config *networkConfiguration, i *bridgeInterface) error
6363
return nil
6464
}
6565
if err := ioutil.WriteFile(sysPath, []byte{'0', '\n'}, 0644); err != nil {
66-
return fmt.Errorf("libnetwork: Unable to disable IPv6 router advertisement: %v", err)
66+
logrus.WithError(err).Warn("unable to disable IPv6 router advertisement")
6767
}
6868
return nil
6969
}

0 commit comments

Comments
 (0)