diff --git a/run.sh b/run.sh index 81482a6..b03c09a 100755 --- a/run.sh +++ b/run.sh @@ -18,9 +18,9 @@ while [[ $# -gt 0 ]]; do done 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 - 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 echo "Neither supported container runtime found." >&2 exit 1