fix: add container name to run commands in run.sh

This commit is contained in:
2026-02-27 12:21:50 +01:00
parent f23d36ecd8
commit 241ee9f645

4
run.sh
View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bash
if command -v dockerd &> /dev/null; then
docker run --rm -it --env-file accounts.env -p 443:443 -v ./storage:/storage azurite:latest
docker run --rm -it --name azurite --env-file accounts.env -p 443:443 -v ./storage:/storage azurite:latest "$@"
elif command -v container &> /dev/null; then
container run --rm -it --env-file accounts.env -p 443:443 --mount type=bind,source=./storage,target=/storage azurite:latest
container run --rm -it --name azurite --env-file accounts.env -p 443:443 --mount type=bind,source=./storage,target=/storage azurite:latest "$@"
else
echo "Neither supported container runtime found." >&2
exit 1