containerOptions
The containerOptions directive specifies additional container options for the underlying container runtime (e.g. Docker, Singularity). For example:
process hello_docker {
container 'busybox:latest'
containerOptions '--volume /data/db:/db'
output:
path 'output.txt'
script:
"""
your_command --data /db > output.txt
"""
}
The above example provides a custom volume mount for a specific process.
warning
This directive is not supported by the Kubernetes executor.