docker run –name jenkins2.346.1 -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home -e JAVA_OPTS=“-Dhudson.model.DownloadService.noSignatureCheck=true” -e TZ=“Asia/Shanghai” jenkins/jenkins:2.346.1
After installing Jenkins using Docker, no plugins were installed. Logging in to Jenkins and entering restart as the URL always fails.
The Jenkins container images for the controller are now configured to delegate the management of the life cycle of the Jenkins process to Docker. Docker documentation on restart policies provides more information.
You need to add the docker command line argument:
--restart=on-failure
The problem has been solved, thank you very much!