1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #43793 from AkihiroSuda/fix-43781

libnetwork: skip firewalld management for rootless
This commit is contained in:
Sebastiaan van Stijn 2022-07-15 13:44:11 +02:00 committed by GitHub
commit 5de77049db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,7 @@ import (
"sync"
"time"
"github.com/docker/docker/rootless"
"github.com/sirupsen/logrus"
)
@ -105,6 +106,12 @@ func probe() {
}
func initFirewalld() {
// When running with RootlessKit, firewalld is running as the root outside our network namespace
// https://github.com/moby/moby/issues/43781
if rootless.RunningWithRootlessKit() {
logrus.Info("skipping firewalld management for rootless mode")
return
}
if err := FirewalldInit(); err != nil {
logrus.Debugf("Fail to initialize firewalld: %v, using raw iptables instead", err)
}