Assign network endpoints to config object
This commit is contained in:
@@ -295,6 +295,7 @@ func (d *docker) CreateContainer(opts CreateContainerOpts) (string, error) {
|
|||||||
ec[netId] = es
|
ec[netId] = es
|
||||||
}
|
}
|
||||||
|
|
||||||
|
networkConf.EndpointsConfig = ec
|
||||||
container, err := d.c.ContainerCreate(context.Background(), cf, h, networkConf, opts.ContainerName)
|
container, err := d.c.ContainerCreate(context.Background(), cf, h, networkConf, opts.ContainerName)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user