fix: correct command check for Docker daemon in start-azurite script

This commit is contained in:
2026-03-23 22:59:27 +01:00
parent abbb0842fc
commit d5cddbdd8c

View File

@@ -27,7 +27,7 @@ while [[ $# -gt 0 ]]; do
esac
done
if command -v dockerd &> /dev/null; then
if command -v docker &> /dev/null; then
docker run --rm -d --name azurite --env-file "$AZURITE_DIR/accounts.env" -p 443:443 -v "$AZURITE_DIR/storage":/storage "$AZURITE_IMAGE" "${CONTAINER_ARGS[@]}"
elif command -v container &> /dev/null; then
container run -c 2 -m 512M --rm -d --name azurite --env-file "$AZURITE_DIR/accounts.env" -p 443:443 --mount type=bind,source="$AZURITE_DIR/storage",target=/storage "$AZURITE_IMAGE" "${CONTAINER_ARGS[@]}"