jenkinsci / jenkinsci/docker-plugin

docker node offline every two times

Open
#915 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
498
Forks
324
Avg merge
1d 2h
Merged PRs (30d)
2

Description

### Jenkins and plugins versions report

Environment


```text
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

1. I created a docker node in "configure Clouds", "Version = 20.10.17, API Version = 1.41" returned after Test Connection every time
2. 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.