Skip to content

Commit

Permalink
secrets: only set CopyUIDGID when required (#10598)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof committed May 23, 2023
1 parent 544b579 commit eafcd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compose/secrets.go
Expand Up @@ -45,7 +45,7 @@ func (s *composeService) injectSecrets(ctx context.Context, project *types.Proje
}

err = s.apiClient().CopyToContainer(ctx, id, "/", &b, moby.CopyToContainerOptions{
CopyUIDGID: true,
CopyUIDGID: config.UID != "" || config.GID != "",
})
if err != nil {
return err
Expand Down

0 comments on commit eafcd1b

Please sign in to comment.