MCPcopy Create free account
hub / github.com/containerd/nerdctl / generateUserOpts

Function generateUserOpts

pkg/cmd/container/run_user.go:28–34  ·  view source on GitHub ↗
(user string)

Source from the content-addressed store, hash-verified

26)
27
28func generateUserOpts(user string) ([]oci.SpecOpts, error) {
29 var opts []oci.SpecOpts
30 if user != "" {
31 opts = append(opts, oci.WithUser(user), withResetAdditionalGIDs(), oci.WithAdditionalGIDs(user))
32 }
33 return opts, nil
34}
35
36func generateUmaskOpts(umask string) ([]oci.SpecOpts, error) {
37 var opts []oci.SpecOpts

Callers 2

generateExecProcessSpecFunction · 0.85
CreateFunction · 0.85

Calls 1

withResetAdditionalGIDsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…