https://www.jenkins.io/blog/2022/05/27/docker-image-new-lifecycle/ says 
that beginning with Jenkins 2.332.3 the docker container lifecycle has 
changed.

add the flag --restart=on-failure 
<https://docs.docker.com/engine/reference/run/#restart-policies---restart> to 
the docker run <…​> jenkins/jenkins command

On Sunday, January 1, 2023 at 11:21:23 AM UTC-7 [email protected] wrote:

> I used to not have this issue with the older Jenkins version that this 
> installation replaced.
>
> I updated to Jenkins v2.346.3 and I start it as a Docker container like 
> this
> $ docker run --rm -d -p 8080:8080 -v 
> /mnt/jenkins_master/jenkins_home:/var/jenkins_home --name jenkins_master 
> --memory=24g 
> 1234567890.dkr.ecr.eu-north-1.amazonaws.com/jenkins_master:2.346.3
>
> Now when I got to my browser to restart Jenkins
> myJenkins.domain.com/restart 
>
> the container dies? Why, and how do I prevent this? I don't see any logs 
> indicating why.
>
> TIA, Chris
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/91bcaad6-bbad-4ca0-92ff-4859f1c64867n%40googlegroups.com.

Reply via email to