jenkinsci / jenkinsci/docker-plugin
Plugin keeps spinning up new containers until first container is up in JNLP mode
- Dominant language
- Java
- Stars
- 498
- Forks
- 324
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 2
Description
Jenkins 2.182
Docker plugin 1.1.6
Docker engine 18.09.7
I set up one container template with specific label (`testtag` in this case). Container uses JNLP as connection mechanism.
After starting ONE build that requires this node label, docker plugin will apparently keep spinning up new instances until first instance is booted up and ready to work.
From jenkins logs:
> Finished DockerContainerWatchdog Asynchronous Periodic Work. 7 ms
Asked to provision 1 slave(s) for: testtag
Provisioning 'testtag' on 'docker'; Total containers: 0 (of 3)
Will provision 'testtag', for label: 'testtag', in cloud: 'docker'
Trying to run container for testtag
Trying to run container for node testtag-0000yjuadiv9g from image: testimage
Started container ID 3a899b68369d19cea4c7647f696c08a1d446e1bf897ea93b3a6e704d78014950 for node testtag-0000yjuadiv9g from image: testimage
Asked to provision 1 slave(s) for: testtag
Provisioning 'testtag' on 'docker'; Total containers: 1 (of 3)
Will provision 'testtag', for label: 'testtag', in cloud: 'docker'
Trying to run container for testtag
Trying to run container for node testtag-0000yjyvz3geo from image: testimage
Started container ID a7eeb03f8bfbb6a2edb4194c59dd9337e8f070bfe7350f92b803d11ecd978e85 for node testtag-0000yjyvz3geo from image: testimage
Asked to provision 1 slave(s) for: testtag
Provisioning 'testtag' on 'docker'; Total containers: 2 (of 3)
Will provision 'testtag', for label: 'testtag', in cloud: 'docker'
Trying to run container for testtag
Trying to run container for node testtag-0000yk3l3txpw from image: testimage
Started container ID 2997ce6c6a758f009c19602259a948db883431492e69d2b82939e2e8e39c8585 for node testtag-0000yk3l3txpw from image: testimage
Note that `Asked to provision 1 slave(s)` keeps repeating, even though a slave is already being provisioned. This keeps repeating until first container is booted up and job starts executing.
Contributor guide
Assessment
This issue has not been assessed yet.