jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-47695] docker.withrun and docker.inside vs --volumes-from

Open
#526 0 comments 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin enhancement imported-jira-issue priority:trivial resolution:unresolved
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


  • status: Open
  • priority: Trivial
  • component(s): docker-workflow-plugin
  • label(s): volumes-from
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-07

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.