Skip to content

Commit

Permalink
Add comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir-a412ed committed Mar 25, 2021
1 parent a657d6c commit b93e718
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions containerd/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ func (d *Driver) createContainer(containerConfig *ContainerConfig, config *TaskC
var opts []oci.SpecOpts

if config.Entrypoint != nil {
// WithProcessArgs replaces the args on the generated spec.
opts = append(opts, oci.WithProcessArgs(args...))
} else {
// WithImageConfigArgs configures the spec to from the configuration of an Image
// with additional args that replaces the CMD of the image.
opts = append(opts, oci.WithImageConfigArgs(containerConfig.Image, args))
}

Expand Down

0 comments on commit b93e718

Please sign in to comment.