mirror of
https://github.com/docker/compose.git
synced 2025-07-23 21:54:40 +02:00
NetworkList to NetworkInspect for ID search
Signed-off-by: kimdcottrell <me@kimdcottrell.com>
This commit is contained in:
parent
c7e31a3c15
commit
ee6e3c2a44
@ -1130,9 +1130,9 @@ func (s *composeService) resolveExternalNetwork(ctx context.Context, n *types.Ne
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(networks) == 0 {
|
if len(networks) == 0 {
|
||||||
networks, err = s.apiClient().NetworkList(ctx, moby.NetworkListOptions{
|
// in this instance, n.Name is really an ID
|
||||||
Filters: filters.NewArgs(filters.Arg("id", n.Name)),
|
network, err := s.apiClient().NetworkInspect(ctx, n.Name, moby.NetworkInspectOptions{})
|
||||||
})
|
networks = append(networks, network)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user