Fix error
This commit is contained in:
@@ -312,7 +312,7 @@ func (d *docker) CreateContainer(opts CreateContainerOpts) error {
|
|||||||
for _, nid := range opts.Networks {
|
for _, nid := range opts.Networks {
|
||||||
err := d.c.NetworkConnect(context.Background(), nid, container.ID, &network.EndpointSettings{})
|
err := d.c.NetworkConnect(context.Background(), nid, container.ID, &network.EndpointSettings{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user