Skip to content

Running -with-docker and mounting volumes #4260

Closed Answered by bentsherman
nightdew asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the containerOptions directive which is basically the same as docker.runOptions but can be per-process and dynamic based on the task inputs:

containerOptions { "-v ${in1} -v ${in2} ..." }

Personally I think refactoring the vals to paths would be less work, but to each their own... 😄

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nightdew
Comment options

@bentsherman
Comment options

Answer selected by nightdew
@nightdew
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants