[proxy] do not weave attach containers in '--net=host|container:<name|id>'
This commit is contained in:
1 parent
77bc56751b
commit
1132d26d47
5 files changed
+17
-4
No files matched your search
@@ -21,7 +21,7 @@ func (i *startContainerInterceptor) InterceptResponse(r *http.Response) error {
|
||||
return err
|
||||
}
|
||||
|
||||
cidrs, ok := i.proxy.weaveCIDRsFromConfig(container.Config)
|
||||
cidrs, ok := i.proxy.weaveCIDRsFromConfig(container.Config, container.HostConfig)
|
||||
if !ok {
|
||||
Debug.Print("No Weave CIDR, ignoring")
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user