Skip to content

Docker Entrypoint overridden by k8s command #13298

Closed Locked Answered by agilgur5
Nataliia5722 asked this question in Q&A
Discussion options

You must be logged in to vote

I think you've fallen into a common misunderstanding of the Docker vs. k8s terminology. Docker's ENTRYPOINT is equivalent to k8s's command, and Docker's CMD is equivalent to k8s's args.

The terminology is unfortunately pretty confusing so this happens quite often.
To be explicit, that's not an Argo error or specific to Argo, that's just Kubernetes functionality. If you run a plain Pod in Kubernetes with that image and that command, you'll get the same error

So your command: - "World" is actually overriding your ENTRYPOINT ["echo", "Hello"]. If you want to print "Hello World", you probably want to use args and not command:

        args:
          - "World"

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Nataliia5722
Comment options

@agilgur5
Comment options

Answer selected by agilgur5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/executor type/support User support issue - likely not a bug area/upstream This is an issue with an upstream dependency, not Argo itself
2 participants