Skip to content

Commit

Permalink
fix entrypoint override (#124)
Browse files Browse the repository at this point in the history
In case of entrypoint override, image config needs to be passed.
  • Loading branch information
n-marton authored Jan 20, 2022
1 parent f3c4525 commit c564dd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions containerd/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ func (d *Driver) createContainer(containerConfig *ContainerConfig, config *TaskC
var opts []oci.SpecOpts

if config.Entrypoint != nil {
opts = append(opts, oci.WithImageConfig(containerConfig.Image))
// WithProcessArgs replaces the args on the generated spec.
opts = append(opts, oci.WithProcessArgs(args...))
} else {
Expand Down

0 comments on commit c564dd2

Please sign in to comment.