diff --git a/server/container_create.go b/server/container_create.go index 366cb566ec4d..01820d2d9198 100644 --- a/server/container_create.go +++ b/server/container_create.go @@ -399,18 +399,7 @@ func buildOCIProcessArgs(containerKubeConfig *pb.ContainerConfig, ociConfig *v1. return nil, fmt.Errorf("no command specified") } - // create entrypoint and args - var entrypoint string - var args []string - if len(kubeCommands) != 0 { - entrypoint = kubeCommands[0] - args = append(kubeCommands[1:], kubeArgs...) - } else { - entrypoint = kubeArgs[0] - args = kubeArgs[1:] - } - - processArgs := append([]string{entrypoint}, args...) + processArgs := append(kubeCommands, kubeArgs...) logrus.Debugf("OCI process args %v", processArgs)