jenkinsci / jenkinsci/docker-workflow-plugin
[JENKINS-47695] docker.withrun and docker.inside vs --volumes-from
- Dominant language
- Java
- Stars
- 527
- Forks
- 422
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
Hi,
i wanted to use GOSS to test my docker image in a Pipeline.
So i started a GOSS Container.
I then started my image Container with "docker.image(image.id).inside(–volumes-from GOSS)".
I expected to see the goss folder from GOSS Container because its declared as a volume in GOSS. But in my image Container is nothing.
I suspect the mount from the Jenkins Workspace into the Image Container kind of overwrites the volumes-from maybe ?
This also happens with "docker.withrun".
I worked around that by using shell scripts but it would be nice if --volumes-from would be working.
---
Originally reported by heinzepreller, imported from: docker.withrun and docker.inside vs --volumes-from
Raw content of original issue
Hi,
i wanted to use GOSS to test my docker image in a Pipeline.
So i started a GOSS Container.
I then started my image Container with "docker.image(image.id).inside(–volumes-from GOSS)".
I expected to see the goss folder from GOSS Container because its declared as a volume in GOSS. But in my image Container is nothing.
I suspect the mount from the Jenkins Workspace into the Image Container kind of overwrites the volumes-from maybe ?
This also happens with "docker.withrun".
I worked around that by using shell scripts but it would be nice if --volumes-from would be working.
- environment:
Jenkins 2.85
Contributor guide
Assessment
This issue has not been assessed yet.