Jenkins docker container overrides with "--entrypoint cat" ...

3,681 views
Skip to first unread message

Eric Tan

unread,
Sep 28, 2017, 6:49:04 AM9/28/17
to Jenkins Users
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"

            ],

Eric Tan

unread,
Sep 29, 2017, 3:26:54 AM9/29/17
to Jenkins Users

nicolas de loof

unread,
Sep 29, 2017, 5:08:50 AM9/29/17
to jenkins...@googlegroups.com
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


--
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+unsubscribe@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.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages