You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Operating System are you using (both controller, and any agents involved in the problem)?
docker cloud is pointing to a google container-optimized OS instance
Reproduction steps
configure a docker cloud
configure a docker agent template which has a "Volumes From" entry "container:ro" (read-only, as indicated in on-page documentation)
run a job which uses that agent template label
Expected Results
job execution proceeds
Actual Results
container instantiation fails
log shows:
Mar 22, 2022 10:36:22 PM WARNING hudson.slaves.NodeProvisioner lambda$update$6
Unexpected exception encountered while provisioning agent Image of <redacted>
com.github.dockerjava.api.exception.BadRequestException: {"message":"invalid mode: ro:rw"}
at com.github.dockerjava.netty.handler.HttpResponseHandler.channelRead0(HttpResponseHandler.java:99)
at com.github.dockerjava.netty.handler.HttpResponseHandler.channelRead0(HttpResponseHandler.java:33)
...
...
Anything else?
(I don't have direct access to either Jenkins master or docker host, but I think the reasoning below is sound)
dchsueh
changed the title
DockerTemplateBase "volumes from" value "container:ro" results in BadRequestException "invalid mode: ro:rw"
using a "ro" container suffix in DockerTemplateBase "volumes from" value results in BadRequestException "invalid mode: ro:rw"
Mar 23, 2022
dchsueh
changed the title
using a "ro" container suffix in DockerTemplateBase "volumes from" value results in BadRequestException "invalid mode: ro:rw"
using a "ro" AccessMode suffix in DockerTemplateBase "volumes from" value results in BadRequestException "invalid mode: ro:rw"
Mar 23, 2022
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
docker cloud is pointing to a google container-optimized OS instance
Reproduction steps
configure a docker cloud
configure a docker agent template which has a "Volumes From" entry "container:ro" (read-only, as indicated in on-page documentation)
run a job which uses that agent template label
Expected Results
job execution proceeds
Actual Results
container instantiation fails
log shows:
Anything else?
(I don't have direct access to either Jenkins master or docker host, but I think the reasoning below is sound)
I believe this is the result of
docker-plugin/src/main/java/com/nirima/jenkins/plugins/docker/DockerTemplateBase.java
Line 817 in 3f99ec2
on sending out on the wire it gets reconstituted as "container:ro:rw"
The text was updated successfully, but these errors were encountered: