Skip to content

Commit 6496078

Browse files
Merge pull request #2669 from estesp/fix-withuser-comment
Remove a TODO from the code comments that is complete
2 parents 54447c6 + 41615e8 commit 6496078

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/ctr/commands/run/run_unix.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,8 @@ func NewContainer(ctx gocontext.Context, client *containerd.Client, context *cli
149149

150150
cOpts = append(cOpts, spec)
151151

152-
// oci.WithImageConfig (WithUsername, WithUserID) depends on rootfs snapshot for resolving /etc/passwd.
153-
// So cOpts needs to have precedence over opts.
154-
// TODO: WithUsername, WithUserID should additionally support non-snapshot rootfs
152+
// oci.WithImageConfig (WithUsername, WithUserID) depends on access to rootfs for resolving via
153+
// the /etc/{passwd,group} files. So cOpts needs to have precedence over opts.
155154
return client.NewContainer(ctx, id, cOpts...)
156155
}
157156

0 commit comments

Comments
 (0)