diff --git a/libnetwork/sandbox/configure_linux.go b/libnetwork/sandbox/configure_linux.go index 2a6984ba47..6f106e8647 100644 --- a/libnetwork/sandbox/configure_linux.go +++ b/libnetwork/sandbox/configure_linux.go @@ -156,7 +156,7 @@ func setInterfaceName(iface netlink.Link, settings *Interface) error { func setInterfaceRoutes(iface netlink.Link, settings *Interface) error { for _, route := range settings.Routes { err := netlink.RouteAdd(&netlink.Route{ - Scope: netlink.SCOPE_UNIVERSE, + Scope: netlink.SCOPE_LINK, LinkIndex: iface.Attrs().Index, Dst: route, })