Assign network endpoints to config object

This commit is contained in:
Marcos Lilljedahl
2017-08-25 14:08:26 -03:00
parent 6941b8b69a
commit 19176966e2

View File

@@ -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 {