Re: Docker container stops on a Jenkins restart?

2023-01-01 Thread zil...@gmail.com
Thanks Mark!

Chris

On Sunday, January 1, 2023 at 2:23:32 PM UTC-5 Mark Waite wrote:

> 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 
>  to 
> the docker run <…​> jenkins/jenkins command
>
> On Sunday, January 1, 2023 at 11:21:23 AM UTC-7 zil...@gmail.com 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/12430f44-9e3c-4d51-930b-9ed8278b6b3an%40googlegroups.com.


Re: Docker container stops on a Jenkins restart?

2023-01-01 Thread Mark Waite
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 
 to 
the docker run <…​> jenkins/jenkins command

On Sunday, January 1, 2023 at 11:21:23 AM UTC-7 zil...@gmail.com 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/91bcaad6-bbad-4ca0-92ff-4859f1c64867n%40googlegroups.com.


Re: Docker container stops on a Jenkins restart?

2023-01-01 Thread Christoph Schulz


On Sun, 2023-01-01 at 10:21 -0800, zil...@gmail.com wrote:
> I used to not have this issue with the older Jenkins version that
> this installation replaced.

Do you know the old version? That would make investigation easier. :)

> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
>  https://groups.google.com/d/msgid/jenkinsci-users/33260ab5-f104-
> 4d58-9171-e4a11a93de89n%40googlegroups.com
> .




-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/83e16df41c821aaa06dabec85d79082c1c9bbaf7.camel%40chsc.de.