-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Blocker
-
Component/s: docker-workflow-plugin
-
None
-
Environment:Jenkins Version: 2.121.1
Docker Pipeline Plugin: 1.5
-
1.24
After Upgrading DockerĀ Pipeline Plugin from 1.4 to latest(1.7), our pipeline job running with Docker started failing with following error,
ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument. See
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#entrypoint
for entrypoint best practices.[Pipeline]
$ docker stop --time=1 6c3e4c47264e7766c2277555ac05de7267ab0895ab8f91b257761a6c649379c2
$ docker rm -f 6c3e4c47264e7766c2277555ac05de7267ab0895ab8f91b257761a6c649379c2[Pipeline] // withDockerContainer[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // withDockerRegistry[Pipeline] }[Pipeline] // withCredentials[Pipeline] }[Pipeline] // ws[Pipeline] }[Pipeline] // node[Pipeline] echoError: hudson.AbortException: script returned exit code -2
Ā
Investigating further we found that issue is with Docker Pipeline Plugin 1.5.
Ā
Can you please help us fix this issue? Are we missing something while using version 1.5 or is it a bug in the plugin?
- causes
-
JENKINS-60039 durable-task v1.33 breaks sh steps in pipeline when running in a Docker container
-
- Closed
-
- is duplicated by
-
JENKINS-39457 Empty environment variable causes error on docker run
-
- Reopened
-
-
JENKINS-60039 durable-task v1.33 breaks sh steps in pipeline when running in a Docker container
-
- Closed
-