Status: Open (View Workflow)
Amazon Linux 4.14.33-51.37.amzn1.x86_64
Docker version 17.12.1-ce, build 3dfb8343b139d6342acfd9975d7f1068b5b1c3d3
Java OpenJDK version 1.8.0_171
Jenkins installed via YUM, builds run on slaves connected via SSH
I have a Docker image with MongoDB installed. My pipeline tries to start the mongod service, run some database commands, and then stop the mongod service. When trying to stop the mongod service, the pipeline hangs for 5 minutes and then returns a failed exit status.
I've confirmed that I'm able to run these same commands within a Docker container manually, on the same machine, with no issues, so this seems like a Jenkins issue of some sort.
Create an image using the following Dockerfile:
Run the following pipeline on a Jenkins slave running Amazon Linux: