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