mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-11 13:17:07 +00:00
down_act_outer: match the act outer runner by name prefix instead of a hardcoded image ancestor, so it works regardless of ACT_PLATFORM_IMAGE. 13_cleanup: warn loudly when a node survives 'docker rm -f' (kernel D-state / stuck NFS, reboot needed) instead of swallowing the error. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
14 lines
472 B
Bash
Executable File
14 lines
472 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set +e
|
|
|
|
# Match act's outer-runner name prefix, not the image: ACT_PLATFORM_IMAGE varies the ancestor.
|
|
ids="$(docker ps -aq --filter "name=^act-")"
|
|
if [ -n "${ids}" ]; then
|
|
echo "→ removing act outer container(s): ${ids}"
|
|
# Word-splitting on $ids is intentional: docker rm -f wants each ID as its own argv element.
|
|
# shellcheck disable=SC2086
|
|
docker rm -f ${ids} >/dev/null 2>&1
|
|
else
|
|
echo "→ no act outer container present (nothing to do)"
|
|
fi
|