Skip to content

Devcontainer fails to build on Apple Silicon (arm64) due to trixie base image #6808

Open

Description

@tomashobza

The devcontainer fails to build on Apple Silicon Macs. The base image mcr.microsoft.com/vscode/devcontainers/javascript-node:22 resolves to Debian 13 (trixie) on arm64, where python3-distutils and software-properties-common are unavailable, causing the apt-get install step to fail.

Verified with:

$ docker run --rm --platform linux/arm64 \
    mcr.microsoft.com/vscode/devcontainers/javascript-node:22 \
    cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"

Error:

E: Unable to locate package software-properties-common
E: Package 'python3-distutils' has no installation candidate

Fix: Pin the base image in .devcontainer/Dockerfile to the bookworm variant:

FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:22-bookworm

This is a one-line change that makes the devcontainer build correctly on arm64.

Activity

  1. added a commit that references this issue on Sep 22, 2026
    0cac6d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions