Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.
Python awsaws-emulatoraws-localaws-sdkdevtoolsdockerdynamodbec2emulatorlambdalocalstacklocalstack-alternativeministackmock-awsopen-sourcepythons3sqsterraform
release v1.5.26 (#2148)
Nahuel Nucera6d9cd7af76c4
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5a70d459..7a6bae8c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,13 @@ Versioning follows [Semantic Versioning](https://semver.org/).## [Unreleased]+## [1.5.26] — 2026-10-11++### Fixed+- **Docker image — `ensurepip` is back in the slim image** — 1.5.24 removed `ensurepip` from the Alpine image, so `python -m venv` could not install pip in images built on top of MiniStack. Reported by @jin-gizmo.+- **ECS — `DescribeServices` on a missing cluster** — returned success with every service listed as `MISSING`; it now returns `ClusterNotFoundException`.+- **Startup memory without Docker** — the Docker Hub pull fallback imported the Docker SDK at boot even when no Docker socket was available. It now loads only when a socket is present.+## [1.5.25] — 2026-10-10### Addeddiff --git a/Dockerfile b/Dockerfileindex 7b0fb171..a3d46bed 100644--- a/Dockerfile+++ b/Dockerfile@@ -40,7 +40,7 @@ FROM python:3.13-alpine AS runtime# Upgrade base packages to pick up latest security patches.RUN apk upgrade --no-cache && apk add --no-cache nodejs bash openssl && rm -f /usr/bin/wget /bin/wget \&& rm -rf /usr/local/lib/python3.13/site-packages/pip* /usr/local/bin/pip* \- /usr/local/lib/python3.13/ensurepip /usr/local/lib/python3.13/idlelib \+ /usr/local/lib/python3.13/idlelib \/usr/local/lib/python3.13/pydoc_data /usr/local/lib/python3.13/tkinter \/usr/local/lib/python3.13/turtledemodiff --git a/ministack/app.py b/ministack/app.pyindex 6c6fc252..36e44477 100644--- a/ministack/app.py+++ b/ministack/app.py@@ -2991,9 +2991,10 @@ async def _handle_lifespan(scope, receive, send):))logger.info("Worker thread pool: %d threads", _max_workers)- from ministack.core.responses import install_docker_hub_fallback+ if _docker_socket_present():+ from ministack.core.responses import install_docker_hub_fallback- install_docker_hub_fallback()+ install_docker_hub_fallback()_run_init_scripts()# Reap any container that survived a hard kill of the previous# process. Persistence strips container ids from snapshots, so any@@ -3132,10 +3133,16 @@ _DOCKER_REAP_TIMEOUT = float(os.environ.get("MINISTACK_DOCKER_TIMEOUT", "10"))_DOCKER_REAP_BOOT_DEADLINE = 10.0+def _docker_socket_present() -> bool:+ """False when DOCKER_HOST (or the default) names a unix socket that does not+ exist, so the docker SDK is never imported on a host without a daemon."""+ sock = os.environ.get("DOCKER_HOST") or "unix:///var/run/docker.sock"+ return not (sock.startswith("unix://") and not os.path.exists(sock[len("unix://") :]))++def _reaper_docker_client():"""Docker client for the periodic reaper, or None when there is no daemon."""- sock = os.environ.get("DOCKER_HOST") or "unix:///var/run/docker.sock"- if sock.startswith("unix://") and not os.path.exists(sock[len("unix://") :]):+ if not _docker_socket_present():return Nonetry:import dockerdiff --git a/ministack/services/ecs.py b/ministack/services/ecs.pyindex bd724fc2..25e84847 100644--- a/ministack/services/ecs.py+++ b/ministack/services/ecs.py@@ -1483,7 +1483,7 @@ def _delete_service(data):def _describe_services(data):cluster_name = _resolve_cluster_name(data.get("cluster", "default"))- if cluster_name is None:+ if cluster_name is None or cluster_name not in _clusters:return error_response_json("ClusterNotFoundException", "Cluster not found.", 400)refs = data.get("services", [])include = set(data.get("include", []))diff --git a/pyproject.toml b/pyproject.tomlindex 7b0d5ec3..2debdc40 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "ministack"-version = "1.5.25"+version = "1.5.26"description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"readme = "README.md"license = { file = "LICENSE" }diff --git a/tests/test_ecs.py b/tests/test_ecs.pyindex 6df20934..e9f3f637 100644--- a/tests/test_ecs.py+++ b/tests/test_ecs.py@@ -754,6 +754,12 @@ def test_ecs_create_service_v2(ecs):assert svc["status"] == "ACTIVE"assert svc["desiredCount"] == 2+def test_ecs_describe_services_missing_cluster(ecs):+ with pytest.raises(ClientError) as exc:+ ecs.describe_services(cluster=f"none-{_uuid_mod.uuid4().hex[:8]}", services=["svc"])+ assert exc.value.response["Error"]["Code"] == "ClusterNotFoundException"++def test_ecs_describe_services_v2(ecs):ecs.create_cluster(clusterName="ecs-ds-v2c")ecs.register_task_definition(