|
@@ -745,6 +745,9 @@ func (container *Container) BuildCreateEndpointOptions(n libnetwork.Network, epC
|
|
|
for _, alias := range epConfig.Aliases {
|
|
|
createOptions = append(createOptions, libnetwork.CreateOptionMyAlias(alias))
|
|
|
}
|
|
|
+ for k, v := range epConfig.DriverOpts {
|
|
|
+ createOptions = append(createOptions, libnetwork.EndpointOptionGeneric(options.Generic{k: v}))
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if container.NetworkSettings.Service != nil {
|
|
@@ -790,9 +793,6 @@ func (container *Container) BuildCreateEndpointOptions(n libnetwork.Network, epC
|
|
|
|
|
|
createOptions = append(createOptions, libnetwork.EndpointOptionGeneric(genericOption))
|
|
|
}
|
|
|
- for k, v := range epConfig.DriverOpts {
|
|
|
- createOptions = append(createOptions, libnetwork.EndpointOptionGeneric(options.Generic{k: v}))
|
|
|
- }
|
|
|
|
|
|
}
|
|
|
|