Skip to content

When running job in container, are CMD or ENTRYPOINT executed? #26943

Discussion options

You must be logged in to vote

Hi @petertiedemann ,

According to the syntax of container, there’s no CMD or entrypoint settings, only in the ‘jobs.<job_id>.container.options’ , it’s possible to overwrite the default ENTRYPOINT of the image with “–entrypoint”.

And during the initialization, container doesn’t have access to the “env” variables which defined in the job. 

The env variables can be accessed in the job steps.

Thanks

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants