docker-plugin
docker-plugin copied to clipboard
docker node offline every two times
Jenkins and plugins versions report
Environment
Jenkins 2.319.3
docker-plugin 1.2.9
What Operating System are you using (both controller, and any agents involved in the problem)?
centos
Reproduction steps
- I created a docker node in "configure Clouds", "Version = 20.10.17, API Version = 1.41" returned after Test Connection every time
- I created a pipeline to use this node
Expected Results
everytime works ok
Actual Results
first time run the pipeline success ,but the second time I run it shows that All nodes of label '***‘are offline
log:
first time: java.net.SocketException: Socket closed hudson.remoting.ChannelClosedException: Channel "docker-001904zkzutn1": channel is already closed Stopped container '9f6cd2f575bf3590d130d49b0adf99dad16ac04ae42aa7d588a1b329ce84ab5f' for node 'docker-001904zkzutn1'. Sep 21, 2022 1:06:24 PM INFO io.jenkins.docker.DockerTransientNode$1 println Removed container '9f6cd2f575bf3590d130d49b0adf99dad16ac04ae42aa7d588a1b329ce84ab5f' for node 'docker-001904zkzutn1'.
second time: Status 404: {"message":"No such container: 9f6cd2f575bf3590d130d49b0adf99dad16ac04ae42aa7d588a1b329ce84ab5f"}
Anything else?
No response
I hope every time I run the task success,but the actual result is : success, offline, success, offline, success, offline, success, offline, success, offline, ........
I also encounter such problems. How can I solve them