[proxy] do not weave attach containers in '--net=host|container:<name|id>'

This commit is contained in:
Paul Bellamy committed 2015-07-16 13:58:27 +01:00
1 parent 77bc56751b
commit 1132d26d47
5 files changed
+17 -4

No files matched your search

+1 -1
View File
@@ -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