From c564dd2e58cff25f5e768b754258a44d5e3bf800 Mon Sep 17 00:00:00 2001 From: n-marton Date: Thu, 20 Jan 2022 19:28:03 +0100 Subject: [PATCH] fix entrypoint override (#124) In case of entrypoint override, image config needs to be passed. --- containerd/containerd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/containerd/containerd.go b/containerd/containerd.go index 5ea3a66..9dc7e81 100644 --- a/containerd/containerd.go +++ b/containerd/containerd.go @@ -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 {