Correct way to stop jenkins in docker

114 views
Skip to first unread message

Stanislav Baiduzhyi

unread,
Nov 18, 2015, 9:04:57 AM11/18/15
to jenkins...@googlegroups.com
The obvious option to stop dockered jenkins would be:
docker stop some-container-name

But is that the correct way, or is it similar to kill -9 and there is
a proper way of stopping it "gently"?

Regards,
Stanislav

Baptiste Mathus

unread,
Nov 18, 2015, 12:02:43 PM11/18/15
to jenkins...@googlegroups.com

Kill -9 should always be a last resort solution.

docker stop should work.

But beware the stop timeout. If for some reason your Jenkins instance takes more than 10 seconds to stop gracefully, docker will then kill (-9) it.
In that case use the option to possibly make that timeout a bit higher.
Cheers

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAFHiie7Rcsu4B2xWbNN5gJv%3DOn4H83Xaf0BS3inCtrezqtgBsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages