mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 07:17:01 +08:00
doll: --restart=unless-stopped
This commit is contained in:
parent
9766b40796
commit
a28906c1d7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user