#!/bin/sh set -eu case "${TARGET_INSTANCE_ID:-}" in api1|api2) ;; *) echo 'TARGET_INSTANCE_ID must be api1 or api2' >&2; exit 2 ;; esac . "$(dirname "$0")/lab-containers.sh" id=$(container "$TARGET_INSTANCE_ID") docker stop --time 4 "$id"