Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executable file not found when args without command is specified #180

Open
iocanel opened this issue Dec 8, 2021 · 0 comments
Open

Executable file not found when args without command is specified #180

iocanel opened this issue Dec 8, 2021 · 0 comments

Comments

@iocanel
Copy link

iocanel commented Dec 8, 2021

Using ubi-quarkus-native-binary-s2i for binary s2i builds and creating a container using args but not command, for example:

    spec:
      containers:
        - args:
            - ARG1
            - ARG2
          env:
            - name: QUARKUS_HOME
              value: /home/quarkus/
            - name: QUARKUS_OPTS
              value: -Dquarkus.http.host=0.0.0.0
            - name: QUARKUS_LOG_CONSOLE_FORMAT
              value: "%d{HH:mm:ss,SSS} %s%e%n"
          image: my/app:1.0.0-SNAPSHOT

results in:

Error: container create failed: time="2021-10-14T08:03:53Z" level=error msg="container_linux.go:367: starting container process caused: exec: \"ARG1\": executable file not found in $PATH"

According to: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#define-a-command-and-arguments-when-you-create-a-pod the image entrypoint should be used along with the container args, but it doesn't seem to be the case here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant