[Chapel Merge] Retain linuxbrew and docker test containers until next run

Branch: refs/heads/main
Revision: 951da37bf66d5fe054e53384f1d83790775babdc
Author: arifthpe
Link: Retain linuxbrew and docker test containers until next run by arifthpe · Pull Request #28763 · chapel-lang/chapel · GitHub
Log Message:
Retain linuxbrew and docker test containers until next run (#28763)

Instead of running these containers with --rm, manually remove them
and their volumes by a static name (if present) before running them.

This has two benefits:

  • Containers are kept around until the next run, so one can debug a
    failed run without having to rebuild.
  • Orphaned containers and volumes (which could occur due to a Jenkins
    disconnect) are guaranteed to be cleaned up eventually, and can't
    accumulate anonymously.

[reviewed by @jabraham17, thanks!]

Compare: Comparing b1032a885514d5d03631c02a1c6b38daa95a3425...72051ebbd43059603e707a4646d3d009be325c13 · chapel-lang/chapel · GitHub

Diff:
M util/cron/test-docker.bash
M util/packaging/docker/test/homebrew_ci.bash
https://github.com/chapel-lang/chapel/pull/28763.diff