mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
Propagate GroupAdd from ServiceConfig to HostConfig
The `group_add` key is parsed correctly from a compose file, but it is not passed into the `ContainerCreate` API call, thus the configuration does not take effect. This commit fixes the issue by propagating the configuration from Docker compose's ServiceConfig to Docker container's HostConfig. Signed-off-by: Lance Chen <hello@lancechen.tw>
This commit is contained in:
parent
a108690ac2
commit
1191023fb6
@ -380,6 +380,7 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project,
|
|||||||
Isolation: container.Isolation(service.Isolation),
|
Isolation: container.Isolation(service.Isolation),
|
||||||
Runtime: service.Runtime,
|
Runtime: service.Runtime,
|
||||||
LogConfig: logConfig,
|
LogConfig: logConfig,
|
||||||
|
GroupAdd: service.GroupAdd,
|
||||||
}
|
}
|
||||||
|
|
||||||
return &containerConfig, &hostConfig, networkConfig, nil
|
return &containerConfig, &hostConfig, networkConfig, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user