From a28906c1d7c0042939370649d9114faf4f59f0c5 Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Fri, 10 Nov 2023 18:05:28 +0800 Subject: [PATCH] doll: --restart=unless-stopped --- scripts/doll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/doll b/scripts/doll index 6da3a6d..22075a8 100755 --- a/scripts/doll +++ b/scripts/doll @@ -21,5 +21,5 @@ if [[ -z "$IMAGE" ]]; then fmt_fatal "image not found" else fmt_note "--> ${IMAGE_META[@]}" - $SUDO docker run ${2:+"--name"} $2 -itd $IMAGE sh + $SUDO docker run ${2:+"--name"} $2 -itd --restart=unless-stopped $IMAGE sh fi