util: add warning if network fallback is used

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
docker-19.03
Tonis Tiigi 2019-07-15 10:53:18 -07:00
parent 954b73dae1
commit acbdfc2851
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import (
"github.com/moby/buildkit/solver/pb"
specs "github.com/opencontainers/runtime-spec/specs-go"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)
type Opt struct {
@ -36,6 +37,7 @@ func Providers(opt Opt) (map[pb.NetMode]Provider, error) {
}
defaultProvider = cniProvider
} else {
logrus.Warnf("using host network as the default")
defaultProvider = NewHostProvider()
}
default: