Skip to content

Commit c564dd2

Browse files
author
n-marton
authored
fix entrypoint override (#124)
In case of entrypoint override, image config needs to be passed.
1 parent f3c4525 commit c564dd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

containerd/containerd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ func (d *Driver) createContainer(containerConfig *ContainerConfig, config *TaskC
136136
var opts []oci.SpecOpts
137137

138138
if config.Entrypoint != nil {
139+
opts = append(opts, oci.WithImageConfig(containerConfig.Image))
139140
// WithProcessArgs replaces the args on the generated spec.
140141
opts = append(opts, oci.WithProcessArgs(args...))
141142
} else {

0 commit comments

Comments
 (0)