container
The container directive defines the container required by each task. For example:
process hello_docker {
container 'busybox:latest'
script:
"""
your_command --here
"""
}
The corresponding container runtime (e.g. Docker, Singularity) should 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 (i.e. exec processes).