You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Local executors / container engines behave differently
#7775
Currently, local executors are often behaving differently, despite most containerization engines aligning with Docker CLI options or supporting similar functionalities.
Example: "How are CPUs allocated ?" differs along executors:
All the following containerization engines, which are implemented as local executors, support the --cpu-shares (flexible allocation) and --cpus (fixed allocation) flags but make different use of them, which causes a confusing mix.
This discussion was converted from issue #7657 on October 07, 2026 18:56.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
Currently, local executors are often behaving differently, despite most containerization engines aligning with Docker CLI options or supporting similar functionalities.
Example: "How are CPUs allocated ?" differs along executors:
All the following containerization engines, which are implemented as local executors, support the
--cpu-shares(flexible allocation) and--cpus(fixed allocation) flags but make different use of them, which causes a confusing mix.Docker
Docker resource constraints - documentation
Implementation (uses
--cpu-sharesas default, but switch viacpuLimitsflag):nextflow/modules/nextflow/src/main/groovy/nextflow/container/DockerBuilder.groovy
Lines 132 to 135 in 60c7ae9
Apptainer & Singularity:
Singularity CPU limits - documentation
Apptainer CPU limits - documentation
Implementation (uses
--cpu):nextflow/modules/nextflow/src/main/groovy/nextflow/container/SingularityBuilder.groovy
Lines 138 to 140 in 98e8573
Podman
Podman CPU shares - documentation
Implementation (uses
--cpu-shares):nextflow/modules/nextflow/src/main/groovy/nextflow/container/PodmanBuilder.groovy
Lines 135 to 137 in ab6be6d
Suggested solution
Either:
All reactions