File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,13 +60,21 @@ function run_cwltool() {
6060
6161function run_nextflow() {
6262 local container=" nextflow/nextflow:25.10.4"
63+ # Write a Nextflow config that propagates DOCKER_API_VERSION into child containers.
64+ # This is required on Docker Desktop >= 4.x where the minimum supported API version
65+ # is 1.44, but the Docker client bundled in nextflow/nextflow images reports 1.32.
66+ local nf_config=" ${exe_dir} /sapporo.config"
67+ cat > " ${nf_config} " << 'NFCFG '
68+ docker.envWhitelist = 'DOCKER_API_VERSION'
69+ NFCFG
6370 local -a cmd_arr=(docker run --rm
6471 -v /var/run/docker.sock:/var/run/docker.sock
6572 -e DOCKER_HOST=unix:///var/run/docker.sock
73+ -e DOCKER_API_VERSION=1.44
6674 -v " ${run_dir} :${run_dir} "
6775 " -w=${exe_dir} "
6876 " ${container} "
69- nextflow run " ${wf_url} " )
77+ nextflow run " ${wf_url} " -c " ${nf_config} " )
7078 _append_engine_params cmd_arr
7179 cmd_arr+=(-params-file " ${wf_params} " --outdir " ${outputs_dir} " -work-dir " ${exe_dir} " )
7280 _write_and_run cmd_arr
You can’t perform that action at this time.
0 commit comments