container
The container directive defines the container required by each task.
Usage
For example:
process hello_docker {
container 'busybox:latest'
script:
"""
your_command --here
"""
}
The corresponding container runtime (for example, Docker or Singularity) must be running on the compute nodes where tasks are executed. See Containers for the container runtimes supported by Nextflow.
note
This directive is ignored by native processes (that is, exec processes).