Skip to content

CMD in Dockerfile overrides execution when using Kubernetes args #226

@frzifus

Description

@frzifus
Containers:
  lightspeed-core:
    Container ID:    containerd://25280844c1537e7b26aaeedf32266e1ba73bea765992b35cb178e97a5fdca04f
    Image:           quay.io/lightspeed-core/lightspeed-stack:dev-20250708-8e24e8b
    Image ID:        quay.io/lightspeed-core/lightspeed-stack@sha256:0a98cefa03c377018157fe601b19a3ce01a10fc020ff6095180372d5bd442dd5
    Port:            8080/TCP
    Host Port:       0/TCP
    SeccompProfile:  RuntimeDefault
    Args:
      -c
      /app-config/lightspeed-stack.yaml
    State:          Waiting
      Reason:       RunContainerError
    Last State:     Terminated
      Reason:       StartError
      Message:      failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "-c": executable file not found in $PATH
      Exit Code:    128
Events:
  Type     Reason     Age               From               Message
  ----     ------     ----              ----               -------
  Normal   Scheduled  11s               default-scheduler  Successfully assigned llm/lightspeed-core-85b57d9576-bdz6c to gpu1
  Normal   Pulled     11s               kubelet            Container image "ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-python:0.54b1" already present on machine
  Normal   Created    11s               kubelet            Created container: opentelemetry-auto-instrumentation-python
  Normal   Started    10s               kubelet            Started container opentelemetry-auto-instrumentation-python
  Normal   Pulled     9s (x2 over 10s)  kubelet            Container image "quay.io/lightspeed-core/lightspeed-stack:dev-20250708-8e24e8b" already present on machine
  Normal   Created    9s (x2 over 10s)  kubelet            Created container: lightspeed-core
  Warning  Failed     9s (x2 over 10s)  kubelet            Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "-c": executable file not found in $PATH
  Warning  BackOff    8s                kubelet            Back-off restarting failed container lightspeed-core in pod lightspeed-core-85b57d9576-bdz6c_llm(6491d758-2721-4456-a122-895f02a21784)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions