From d7ad25c4d6ff96e407b91ba1acd7e497777dc16b Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Sat, 21 Mar 2026 19:01:07 +0100 Subject: [PATCH] fix: add resource limits to container run command for azurite --- start-azurite | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-azurite b/start-azurite index bf3a70c..00bd2b7 100755 --- a/start-azurite +++ b/start-azurite @@ -30,7 +30,7 @@ done if command -v dockerd &> /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 --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[@]}" + 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[@]}" else echo "Neither supported container runtime found." >&2 exit 1