Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • This issue stackoverflow.com/questions/42946067/… suggests a possible route to the solution, but I am not clear how to make it work from what has been posted. Same for other potential suggestions. Hope to write a clear answer here Commented Sep 11, 2023 at 12:27
  • "Within the container (exec bash)" is making temporary-only changes that will be lost as soon as the container exits. Do these need to go into a Dockerfile so that they'll be part of a persistent image? It looks like you're spelling out a full /var/jenkins_home/... directory path; does the environment variable $WORKSPACE work better? (Jenkins will automatically bind-mount it into the build container for you.) Commented Sep 11, 2023 at 12:50
  • That certainly tidied things up @DavidMaze but still having the same issue. Seems to be something to do with the use of --volumes-from while reading around. In my log I see ``` Status: Downloaded newer image for docker:latest docker.io/library/docker:latest [Pipeline] withDockerContainer Jenkins seems to be running inside container 68f14771d7904ba66ddc79ab8d20fac1f3957edf4999270626058f1d2205a570 $ docker run -t -d -u 0:0 -w /var/jenkins_home/workspace/VariantValidator_ci --volumes-from 68f14771d7904ba66ddc79ab8d20fac1f3957edf4999270626058f1d2205a570 ``` Commented Sep 11, 2023 at 13:48