forked from mtusi2026/mtusi2026lab7
на оценку 4
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
# Keep named volumes (business data and telemetry history) intact. Only this
|
||||
# Compose project's containers/networks and the four images built by lab7 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 \
|
||||
mtusi2026lab7-app:latest \
|
||||
mtusi2026lab7-ingress:latest \
|
||||
mtusi2026lab7-minio:RELEASE.2025-10-15T17-29-55Z \
|
||||
mtusi2026lab7-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 "lab7 containers are stopped; local lab7 images removed; named volumes preserved"
|
||||
|
||||
Reference in New Issue
Block a user