update: change docker run options from interactive to detached mode in run.sh

This commit is contained in:
2026-02-28 19:27:20 +01:00
parent b8f6c2dccf
commit 8813a4d5ed

4
run.sh
View File

@@ -18,9 +18,9 @@ while [[ $# -gt 0 ]]; do
done done
if command -v dockerd &> /dev/null; then if command -v dockerd &> /dev/null; then
docker run --rm -it --name azurite --env-file accounts.env -p 443:443 -v "$AZURITE_DIR":/storage azurite:latest "${CONTAINER_ARGS[@]}" docker run --rm -d --name azurite --env-file accounts.env -p 443:443 -v "$AZURITE_DIR":/storage azurite:latest "${CONTAINER_ARGS[@]}"
elif command -v container &> /dev/null; then elif command -v container &> /dev/null; then
container run --rm -it --name azurite --env-file accounts.env -p 443:443 --mount type=bind,source="$AZURITE_DIR",target=/storage azurite:latest "${CONTAINER_ARGS[@]}" container run --rm -d --name azurite --env-file accounts.env -p 443:443 --mount type=bind,source="$AZURITE_DIR",target=/storage azurite:latest "${CONTAINER_ARGS[@]}"
else else
echo "Neither supported container runtime found." >&2 echo "Neither supported container runtime found." >&2
exit 1 exit 1