forked from mtusi2026/mtusi2026lab6
25 lines
768 B
Bash
Executable File
25 lines
768 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
# Keep named volumes (business data and telemetry history) intact. Only this
|
|
# Compose project's containers/network and the five images built by lab6 are
|
|
# removed. Pulled third-party images and resources from other labs are never
|
|
# selected by this script.
|
|
docker compose down --remove-orphans
|
|
|
|
for image in \
|
|
mtusi2026lab6-app:latest \
|
|
mtusi2026lab6-web:latest \
|
|
mtusi2026lab6-load-balancer:latest \
|
|
mtusi2026lab6-minio:RELEASE.2025-10-15T17-29-55Z \
|
|
mtusi2026lab6-mc:RELEASE.2025-08-13T08-35-41Z
|
|
do
|
|
if docker image inspect "$image" >/dev/null 2>&1; then
|
|
docker image rm "$image"
|
|
fi
|
|
done
|
|
|
|
echo "lab6 containers are stopped; local lab6 images removed; named volumes preserved"
|