Merge pull request #2669 from estesp/fix-withuser-comment

Remove a TODO from the code comments that is complete
This commit is contained in:
Michael Crosby 2018-09-21 14:17:23 -04:00 committed by GitHub
commit 6496078ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,9 +149,8 @@ func NewContainer(ctx gocontext.Context, client *containerd.Client, context *cli
cOpts = append(cOpts, spec) cOpts = append(cOpts, spec)
// oci.WithImageConfig (WithUsername, WithUserID) depends on rootfs snapshot for resolving /etc/passwd. // oci.WithImageConfig (WithUsername, WithUserID) depends on access to rootfs for resolving via
// So cOpts needs to have precedence over opts. // the /etc/{passwd,group} files. So cOpts needs to have precedence over opts.
// TODO: WithUsername, WithUserID should additionally support non-snapshot rootfs
return client.NewContainer(ctx, id, cOpts...) return client.NewContainer(ctx, id, cOpts...)
} }