Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617#!/bin/sh# Foreground runner for the kittentts container, used as the main process of# the systemd user unit (Type=simple). Ensures the container exists, then# starts (or adopts) it and blocks for its lifetime.set -euNAME=kittenttsIMAGE=kittentts:0.8.1
if ! docker inspect "$NAME" >/dev/null 2>&1; then docker run -d --name "$NAME" --restart unless-stopped \ -p 127.0.0.1:8899:8899 "$IMAGE"fi
# Start if stopped and attach (block) so this process lives as long as the# container. Attaching an already-running container adopts it gracefully.exec docker start -ai "$NAME"