Volumes bind mount is not multi-line anymore..
See original GitHub issuedocker-plugin : 1.1 jenkins : 2.73.3 docker : 17.03.1-ce
Hi,
All mounts are now concatenated in one unique line and I can’t find a way to set it back to multiline, even patching the config.xml itself…

This prevents from running any new container :
Error in provisioning; template='DockerTemplate{configVersion=2, labelString='dockerslave', connector=io.jenkins.docker.connector.DockerComputerSSHConnector@4d4c50f0, remoteFs='/home/jenkins', instanceCap=2, mode=EXCLUSIVE, retentionStrategy=com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy@4ffb5590, numExecutors=1, dockerTemplateBase=DockerTemplateBase{image='nexus.assurances.group.gca:8093/caagis/jenkins-docker-slave', pullCredentialsId='', registry=DockerRegistryEndpoint[null;credentialsId=null], dockerCommand='', hostname='', dnsHosts=[], network='dockercntlm_proxy', volumes=[/var/run/docker.sock:/var/run/docker.sock/usr/lib64/libltdl.so.7:/usr/lib/x86_64-linux-gnu/libltdl.so.7/usr/bin/docker:/usr/bin/docker/data/local_caches/maven/repo:/home/jenkins/.m2/repository/data/local_caches/npm/:/data/npm//data/local_caches/yarn:/home/jenkins/.cache/yarn], volumesFrom2=[], environment=[], bindPorts='', bindAllPorts=false, memoryLimit=null, memorySwap=null, cpuShares=null, privileged=false, tty=false, macAddress='null', extraHosts=[nexus.caagis-intra.credit-agricole.fr:10.108.96.67, pic.assurances.group.gca:10.108.99.8, nexus.assurances.group.gca:10.108.99.8, gitlab.assurances.group.gca:10.215.70.177]}, removeVolumes=false, pullStrategy=PULL_LATEST, nodeProperties=[]}' for cloud='Docker Container'
java.lang.IllegalArgumentException
at com.github.dockerjava.api.model.Bind.parse(Bind.java:130)
Caused: java.lang.IllegalArgumentException: Error parsing Bind '/var/run/docker.sock:/var/run/docker.sock/usr/lib64/libltdl.so.7:/usr/lib/x86_64-linux-gnu/libltdl.so.7/usr/bin/docker:/usr/bin/docker/data/local_caches/maven/repo:/home/jenkins/.m2/repository/data/local_caches/npm/:/data/npm//data/local_caches/yarn:/home/jenkins/.cache/yarn'
And in case it would be related, I’m also observing this on 2 differents line sin the “Manage Old Data” screen:
MissingFieldException: No field 'remoteFsMapping' found in class 'com.nirima.jenkins.plugins.docker.action.DockerBuildAction'
MissingFieldException: No field 'idleMinutes' found in class 'com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy', MissingFieldException: No field 'remoteFsMapping' found in class 'com.nirima.jenkins.plugins.docker.DockerTemplate', MissingFieldException: No field 'idleMinutes' found in class 'com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy', MissingFieldException: No field 'lxcConfString' found in class 'com.nirima.jenkins.plugins.docker.DockerTemplateBase'
Any idea to quickly patch this is more than welcome !
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Bind mounts - Docker Documentation
Bind mounts have been around since the early days of Docker. Bind mounts have limited functionality compared to volumes. When you use a...
Read more >What happened when I use a host volume(bind mounts) and ...
I think bind mounts is take effects here but I just do not understand why the path on the host is not empty(since...
Read more >Bind mounts - Amazon Elastic Container Service
With bind mounts, a file or directory on a host, such as an Amazon EC2 instance or AWS Fargate, is mounted into a...
Read more >Mount files into Kubernetes Deployment via ConfigMaps
A short guide to mounting files into a Kubernetes Deployment using ConfigMaps. ... Also, we define that the volume content should be based...
Read more >CHANGELOG.md - moby - Explore · GitLab
Fix an issue with backporting mount spec to older volumes #33207 ... Fix UDP traffic in containers not working after the container is ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

OK - we just downgraded successfully. We seem to have lost the setting “Docker Host URI” which resulted in messages about broken templates.
Thank you @ndeloof.
@Tibo75 please see my last comment on #568, I miss feedback to reproduce/diagnose/fix it