From 66fcdec12a6dc082739cd2dc063a31a15c90f129 Mon Sep 17 00:00:00 2001 From: bilby91 Date: Fri, 12 Jun 2026 14:43:36 -0300 Subject: [PATCH] devcontainer: skip legacy docker-compose in docker-in-docker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Setting dockerDashComposeVersion=v2 still left the released feature installing the legacy `docker-compose` (hyphen) command, which on bookworm/arm64 goes through a global `pip install docker-compose` and fails under PEP 668 (amd64 gets a prebuilt v1 binary, so it passed). Use "none": the repo only uses `docker compose` v2 (see runtime/docker/compose.go — legacy docker-compose is unsupported), and the v2 plugin is installed separately via the moby-compose package, so nothing of value is lost. This drops the pip path that broke arm64. Co-Authored-By: Claude Opus 4.8 --- .devcontainer/devcontainer-build.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.devcontainer/devcontainer-build.json b/.devcontainer/devcontainer-build.json index 140cd6c..c7f3f49 100644 --- a/.devcontainer/devcontainer-build.json +++ b/.devcontainer/devcontainer-build.json @@ -15,11 +15,14 @@ }, "ghcr.io/devcontainers/features/github-cli:1": {}, "ghcr.io/devcontainers/features/docker-in-docker:1": { - // Use Compose v2 (the `docker compose` CLI plugin), which is what the - // integration suite calls. The default "v1" has no arm64 standalone - // binary, so the feature falls back to `pip install docker-compose`, + // "none" skips the legacy `docker-compose` (hyphen) command entirely. + // The repo only uses `docker compose` v2 (runtime/docker/compose.go: + // "legacy docker-compose is not supported"), and the v2 plugin is + // installed separately via the moby-compose package regardless of this + // option. Avoiding the hyphen command is what unblocks arm64: the + // released feature installs Compose v1 there via a global `pip install`, // which fails on bookworm under PEP 668 (externally-managed-environment). - "dockerDashComposeVersion": "v2" + "dockerDashComposeVersion": "none" }, "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { "packages": "make"