[proxy] adding log message for ignored containers
This commit is contained in:
1 parent
c13154eea9
commit
9619a27f8c
2 files changed
+16
-3
No files matched your search
@@ -21,6 +21,10 @@ func (i *startContainerInterceptor) InterceptResponse(r *http.Response) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if !validNetworkMode(container.HostConfig) {
|
||||
Debug.Printf("Ignoring container %s with --net=%s", container.ID, networkMode(container.HostConfig))
|
||||
return nil
|
||||
}
|
||||
cidrs, ok := i.proxy.weaveCIDRsFromConfig(container.Config, container.HostConfig)
|
||||
if !ok {
|
||||
Debug.Print("No Weave CIDR, ignoring")
|
||||
|
||||
Reference in new issue
Block a user