#!/bin/sh set -eu : "${TARGET_INSTANCE_ID:?test provides target API instance alias}" case "$TARGET_INSTANCE_ID" in api1|api2) ;; *) echo "unexpected API instance alias" >&2 exit 2 ;; esac # Leave exactly one API replica stopped. The test restores it explicitly later. docker stop "lab4-${TARGET_INSTANCE_ID}" >/dev/null