Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions network/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package network
import (
"fmt"
"net"
"runtime"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -217,6 +218,10 @@ func (plugin *NoopNetworkPlugin) Init(
// depending on whether or not they connect containers to Linux bridges
// or use some other mechanism (ie, SDN vswitch).

if runtime.GOOS != "linux" {
return nil
}
Comment on lines +221 to +223

// Ensure the netfilter module is loaded on kernel >= 3.18; previously
// it was built-in.
utilexec.New().Command("modprobe", "br-netfilter").CombinedOutput()
Expand Down
Loading