Specifying docker options for a specific task

11 views
Skip to first unread message

Tim Dudgeon

unread,
Apr 5, 2018, 9:21:38 AM4/5/18
to Nextflow
The docs [1] describe how you can use the docker scope to specify various options to docker, but if these are in your nextflow.config then they presumably apply to all docker executions in your pipeline.
Is it possible to define these options (e.g. the runOptions) on a per-task basis e.g. something like this:

process dockerExecution {

    container 'foo/bar'
    docker.runOptions '-u 0:0'

}

Thanks
Tim


Kevin Sayers

unread,
Apr 5, 2018, 10:07:19 AM4/5/18
to next...@googlegroups.com
Currently you can only specify runOptions for all containers. There is an open issue to improve this though, https://github.com/nextflow-io/nextflow/issues/415

Best,
Kevin

--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.

Tim Dudgeon

unread,
Apr 5, 2018, 10:27:54 AM4/5/18
to next...@googlegroups.com

OK, thanks.
That will be a useful enhancement.

You received this message because you are subscribed to a topic in the Google Groups "Nextflow" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nextflow/j5sNlKAcKTs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nextflow+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages