docker plugin docker agent template doesnot support Volume syntax anymore. it replaced by mounts
docker-plugin changelog
Enhancement: volumes have been replaced by mounts, allowing use of tmpdir etc
getting following error & docker slaves were not getting created
Nov 04, 2021 6:24:24 AM SEVERE com.nirima.jenkins.plugins.docker.DockerCloud$1 run
Error in provisioning; template='DockerTemplate{configVersion=2, labelString='docker, generic', connector=DockerComputerJNLPConnector{jnlpLauncher=hudson.slaves.JNLPLauncher@3c4ef1c7, jenkinsUrl='http://host.docker.internal:8080'}, remoteFs='/home/jenkins', instanceCap=10, mode=EXCLUSIVE, retentionStrategy=com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy@29, dockerTemplateBase=DockerTemplateBase{image='odavid/jenkins-jnlp-slave:latest', mounts=[/var/run/docker.sock:/var/run/docker.sock], bindAllPorts=false, memoryLimit=0, memorySwap=0, cpuPeriod=0, cpuQuota=0, cpuShares=0, shmSize=0, privileged=false, tty=false}, removeVolumes=false, stopTimeout=10, pullStrategy=PULL_LATEST, pullTimeout=0, disabled=BySystem,0 ms,4 min 59 sec,Template provisioning failed.}' for cloud='docker-cloud'
java.lang.IllegalArgumentException: Invalid mount: expected key=value comma separated pairs, or 'readonly' keyword
at com.nirima.jenkins.plugins.docker.DockerTemplateBase.parseMountsString(DockerTemplateBase.java:870)
at com.nirima.jenkins.plugins.docker.DockerTemplateBase.parseMountsStrings(DockerTemplateBase.java:857)
at com.nirima.jenkins.plugins.docker.DockerTemplateBase.fillContainerConfig(DockerTemplateBase.java:786)
at com.nirima.jenkins.plugins.docker.DockerTemplate.fillContainerConfig(DockerTemplate.java:272)
at com.nirima.jenkins.plugins.docker.DockerTemplate.doProvisionNode(DockerTemplate.java:714)
at com.nirima.jenkins.plugins.docker.DockerTemplate.provisionNode(DockerTemplate.java:676)
at com.nirima.jenkins.plugins.docker.DockerCloud$1.run(DockerCloud.java:375)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Nov 04, 2021 6:24:32 AM WARNING hudson.slaves.NodeProvisioner update
Unexpected exception encountered while provisioning agent Image of odavid/jenkins-jnlp-slave:latest
java.lang.IllegalArgumentException: Invalid mount: expected key=value comma separated pairs, or 'readonly' keyword
at com.nirima.jenkins.plugins.docker.DockerTemplateBase.parseMountsString(DockerTemplateBase.java:870)
at com.nirima.jenkins.plugins.docker.DockerTemplateBase.parseMountsStrings(DockerTemplateBase.java:857)
at com.nirima.jenkins.plugins.docker.DockerTemplateBase.fillContainerConfig(DockerTemplateBase.java:786)
at com.nirima.jenkins.plugins.docker.DockerTemplate.fillContainerConfig(DockerTemplate.java:272)
at com.nirima.jenkins.plugins.docker.DockerTemplate.doProvisionNode(DockerTemplate.java:714)
at com.nirima.jenkins.plugins.docker.DockerTemplate.provisionNode(DockerTemplate.java:676)
at com.nirima.jenkins.plugins.docker.DockerCloud$1.run(DockerCloud.java:375)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
docker plugin docker agent template doesnot support Volume syntax anymore. it replaced by mounts docker-plugin changelog Enhancement: volumes have been replaced by mounts, allowing use of tmpdir etc
getting following error & docker slaves were not getting created