docker.inside NEED some way to run a docker container in some "wait" mode,
so the use of the `cat` command.
if your entrypoint script do follow docker recommendations it *should* detect
use of such a command and enventually execute it, but real world experience
demonstrated many people don't follow this recommendation, and as such the
container failed to start as expected / stopped immediately. But the "fix"
to override entrypoint is worst imho

Feel free to comment on
https://github.com/jenkinsci/docker-workflow-plugin/pull/85


2017-09-29 9:26 GMT+02:00 Eric Tan <erictan...@gmail.com>:

> https://issues.jenkins-ci.org/browse/JENKINS-39748
>
> On Thursday, 28 September 2017 18:49:04 UTC+8, Eric Tan wrote:
>>
>> Hi,
>>
>> Is there a way to prevent Jenkin from overriding the entrypoint specified
>> in the container image?
>> As shown below in the console output, Jenkins adds "*--entrypoint cat*"
>> which overrides my own entrypoint.
>>
>> $ docker run -t -d -u 1000:1000 -w 
>> /var/jenkins_home/workspace/Test_Pipeline_master-K2ZSF4WTA --volumes-from 
>> db477ccfb5f8261f85de03 -e ******** -e ******** -e ******** *--entrypoint 
>> cat* test-app
>>
>>
>>
>> docker inspect shows:
>>
>>             "Entrypoint": [
>>
>>                 "cat"
>>
>>             ],
>>
>> The original image is
>>
>>             "Entrypoint": [
>>
>>                 "python",
>>
>>                 "test-app.py"
>>
>>             ],
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/b62b27a1-98e6-4e36-92d4-366fc0b508d6%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/b62b27a1-98e6-4e36-92d4-366fc0b508d6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmtbzd22h4sdbuA5rtMqgX9JOrUwjibnnNvi-hqisycmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to