diff --git a/runtime/container.go b/runtime/container.go index a2b75d2394..6918f1c184 100644 --- a/runtime/container.go +++ b/runtime/container.go @@ -1007,7 +1007,7 @@ func (container *Container) DisableLink(name string) { } func (container *Container) setupContainerDns() error { - if container.ResolvConfPath == "" { + if container.ResolvConfPath != "" { return nil } var (