Jenkins on docker on ubuntu 24.04 lts on azure

hi eveyone,
fresh setup of Ubuntu vm on azure and was able to get Jenkins running without issues.

Jenkins setup: Ubuntu 24.04 LTS
Azure
Version: 2.468

how I start jenkins
sudo docker run -u root --rm -d -p 8080:8080 -p 50000:50000 --name jenkins -v jenkins_home:/var/jenkins_home --restart unless-stopped jenkins/jenkins:2.468

however, tried to add it to ubuntu start up and it’s not working
any tips to make it work ?

I got the update notification and If I try it breaks due to not being able to restart jenkins unless if I rerun

“sudo docker run -u root --rm -d -p 8080:8080 -p 50000:50000 --name jenkins -v jenkins_home:/var/jenkins_home --restart unless-stopped jenkins/jenkins:2.468”

New version of Jenkins (2.469) is available for download (changelog).

thanks fo any update.
Thiago B

Please don’t run the Jenkins process as the root user, even inside a container. The Jenkins process does not need a privileged (root) account. Running in a privileged account will create issues that are unique to your environment and make it much more difficult for others to offer help.

1 Like

I found the limitation with ubuntu 24.04 lts, fixed it
then I was able to schedule the docker to start up on restart “as root”
running my specific image and jenkins_home and jenkins_backup mounts that I created and it’s running ok so far, I’ll have a look and spin up another jenkins docker and check the docker as jenkins user only not ROOT

thanks again,
Thiago B.