Skip to content

Commit 9496c51

Browse files
inutanoclaude
andcommitted
fix(nextflow): propagate DOCKER_API_VERSION to fix Docker client version mismatch
The Docker client bundled in nextflow/nextflow images reports API version 1.32, but Docker Desktop >= 4.x requires a minimum of 1.44. This causes all Nextflow runs to fail immediately with: docker: Error response from daemon: client version 1.32 is too old. Minimum supported API version is 1.44, please upgrade your client. Fix by: 1. Setting DOCKER_API_VERSION=1.44 in the Nextflow container environment, which the Docker client reads to override its reported version. 2. Writing a sapporo.config with `docker.envWhitelist = 'DOCKER_API_VERSION'` so Nextflow propagates the variable into all child process containers. The same fix was already applied to run_cwltool(), run_toil(), run_ep3(), and run_streamflow() — this brings run_nextflow() in line with those. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6bb3735 commit 9496c51

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

sapporo/run.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,21 @@ function run_cwltool() {
6060

6161
function 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

0 commit comments

Comments
 (0)