Skip to content

fix(ci): docker network prune does not support -a - #6050

Merged
renecannao merged 1 commit into
GH-Actionsfrom
fix/ci-nuke-all-docker-state
Aug 13, 2026
Merged

fix(ci): docker network prune does not support -a#6050
renecannao merged 1 commit into
GH-Actionsfrom
fix/ci-nuke-all-docker-state

Conversation

@renecannao

@renecannao renecannao commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Problem

The docker-state nuke from PR #6049 fails on the self-hosted runners:

Usage:  docker network prune [OPTIONS]
##[error]Process completed with exit code 125.

Root cause

docker network prune only accepts -f/--force and --filter — the -a/--all flag is not supported (unlike docker volume prune, which has -a). Passing -af is an invalid flag combination, so the command aborts with a usage error.

Fix

Use docker network prune -f in both the preflight and post-job nuke steps. Network prune already removes all unused networks, so no -a is needed.


Summary by cubic

Fixes CI cleanup by replacing docker network prune -af with docker network prune -f in .github/workflows/ci-builds.yml preflight and post-job nuke steps. Previously, -a was invalid for network prune and caused exit 125 on self-hosted runners; now the command runs non-interactively and prunes all unused networks, preventing cleanup failures without changing volume pruning.

Written for commit 04eb487. Summary will update on new commits.

Review in cubic

docker network prune only accepts -f/--force and --filter; the -a/--all flag
is invalid (unlike volume prune), so '-af' aborts with usage error / exit 125.
@renecannao
renecannao merged commit 8c38cf3 into GH-Actions Aug 13, 2026
1 of 2 checks passed
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant