Лабораторная 4 - Гончаревская.Е.А. - БВТ2304 - На 3

This commit is contained in:
Katarhi
2026-11-05 23:30:15 +03:00
parent ec540a1a72
commit d073767e80
13 changed files with 1546 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
set -eu
: "${TARGET_INSTANCE_ID:?TARGET_INSTANCE_ID is required}"
case "$TARGET_INSTANCE_ID" in *[!a-fA-F0-9-]*|'') echo "Invalid API instance id" >&2; exit 2;; esac
docker stop --time 5 "$TARGET_INSTANCE_ID" >/dev/null