Skip to content

Commit b93e718

Browse files
Add comments.
1 parent a657d6c commit b93e718

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

containerd/containerd.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,11 @@ func (d *Driver) createContainer(containerConfig *ContainerConfig, config *TaskC
9696
var opts []oci.SpecOpts
9797

9898
if config.Entrypoint != nil {
99+
// WithProcessArgs replaces the args on the generated spec.
99100
opts = append(opts, oci.WithProcessArgs(args...))
100101
} else {
102+
// WithImageConfigArgs configures the spec to from the configuration of an Image
103+
// with additional args that replaces the CMD of the image.
101104
opts = append(opts, oci.WithImageConfigArgs(containerConfig.Image, args))
102105
}
103106

0 commit comments

Comments
 (0)