Skip to main content

containerOptions

The containerOptions directive specifies additional container options for the underlying container runtime (for example, Docker or Singularity).

Usage

For example:

process hello_docker {
container 'busybox:latest'
containerOptions '--volume /data/db:/db'

output:
path 'output.txt'

script:
"""
your_command --data /db > output.txt
"""
}

This example provides a custom volume mount for a specific process.

Executor support

This directive is not supported by the Kubernetes executor.