Skip to content

Commit

Permalink
Merge pull request moby#46715 from laurazard/c8d-fix-swarm-failures
Browse files Browse the repository at this point in the history
c8d/exec: Add additional groups on exec
  • Loading branch information
thaJeztah authored Oct 25, 2023
2 parents dcc8020 + d7266af commit e36260f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daemon/exec_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func getUserFromContainerd(ctx context.Context, containerdCli *containerd.Client
coci.WithUser(ec.User),
withResetAdditionalGIDs(),
coci.WithAdditionalGIDs(ec.User),
coci.WithAppendAdditionalGroups(ec.Container.HostConfig.GroupAdd...),
}
for _, opt := range opts {
if err := opt(ctx, containerdCli, &cinfo, spec); err != nil {
Expand Down

0 comments on commit e36260f

Please sign in to comment.