maaz.code logo
Simple view

MergedAcode-Foundation/Acode#28707.7Kstars

fix(devcontainer): update docker base image from bullseye to bookworm

By Mohd Maaz Khan, merged by RohitKushvaha01 into Acode-Foundation/Acode on 10 Sept 2026

+1−11 line added, 1 line removed1 file changed0 comments

Conversation

  1. maaz7409opened this pull request on 10 Sept 2026description.mdAuthor

    The image mcr.microsoft.com/devcontainers/java:1-21-bullseye (debian 11) has reached its EOL in late August 2026, which leads to Devcontainer setup failure as given below :

    2026-09-10 07:15:56.863Z: #8 2.129 Reading package lists...2026-09-10 07:15:57.314Z: 
    2026-09-10 07:15:57.476Z: #8 2.592 E: Release file for http://deb.debian.org/debian-security/dists/bullseye-security/InRelease is expired (invalid since 2d 10h 2min 51s). Updates for this repository will not be applied.
    2026-09-10 07:15:57.777Z: #8 ERROR: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends     wget     unzip     curl     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
    2026-09-10 07:15:57.904Z: ------
     > [base 3/5] RUN apt-get update && apt-get install -y --no-install-recommends     wget     unzip     curl     && rm -rf /var/lib/apt/lists/*:
    0.411 Get:1 http://deb.debian.org/debian bullseye InRelease [75.1 kB]2026-09-10 07:15:57.904Z: 
    0.428 Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [27.2 kB]
    0.428 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.0 kB]
    0.667 Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8,066 kB]
    1.140 Get:5 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [18.8 kB]
    
    2.592 E: Release file for http://deb.debian.org/debian-security/dists/bullseye-security/InRelease is expired (invalid since 2d 10h 2min 51s). Updates for this repository will not be applied.
    ------
    2026-09-10 07:15:57.905Z: Dockerfile-with-features:23
    --------------------
      22 |     
      23 | >>> RUN apt-get update && apt-get install -y --no-install-recommends \
      24 | >>>     wget \
      25 | >>>     unzip \
      26 | >>>     curl \
      27 | >>>     && rm -rf /var/lib/apt/lists/*
      28 |     
    --------------------
    ERROR: failed to build: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends     wget     unzip     curl     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
    2026-09-10 07:15:57.914Z: Stop: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.83.3-1789024493166/Dockerfile-with-features -t vsc-acode-ca861cbd8256f628f90859539eea093c0dd4362aecea353a43a405790b062762 --target dev_containers_target_stage --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.83.3-1789024493166 --build-arg _DEV_CONTAINERS_BASE_IMAGE=devcontainer --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /var/lib/docker/codespacemount/workspace/Acode/.devcontainer
    2026-09-10 07:15:57.914Z: {"outcome":"error","message":"Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.83.3-1789024493166/Dockerfile-with-features -t vsc-acode-ca861cbd8256f628f90859539eea093c0dd4362aecea353a43a405790b062762 --target dev_containers_target_stage --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.83.3-1789024493166 --build-arg _DEV_CONTAINERS_BASE_IMAGE=devcontainer --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /var/lib/docker/codespacemount/workspace/Acode/.devcontainer","description":"An error occurred building the image."}
    2026-09-10 07:15:57.915Z: Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.83.3-1789024493166/Dockerfile-with-features -t vsc-acode-ca861cbd8256f628f90859539eea093c0dd4362aecea353a43a405790b062762 --target dev_containers_target_stage --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.83.3-1789024493166 --build-arg _DEV_CONTAINERS_BASE_IMAGE=devcontainer --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /var/lib/docker/codespacemount/workspace/Acode/.devcontainer
    2026-09-10 07:15:57.915Z:     at K9 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:468:2009)
    2026-09-10 07:15:57.916Z:     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    2026-09-10 07:15:57.917Z:     at async vD (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:467:1910)
    2026-09-10 07:15:57.917Z:     at async RL (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:467:608)
    2026-09-10 07:15:57.918Z:     at async AZ (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:485:3870)
    2026-09-10 07:15:57.918Z:     at async uC (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:485:4989)
    2026-09-10 07:15:57.918Z:     at async L5 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:666:205)
    2026-09-10 07:15:57.918Z:     at async G5 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:665:15084)
    2026-09-10 07:15:57.918Z:     at async /.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:485:1188
    2026-09-10 07:15:57.920Z: devcontainer process exited with exit code 1
    
    ====================================== ERROR ====================================
    2026-09-10 07:15:57.926Z: Failed to create container.
    =================================================================================
    2026-09-10 07:15:57.926Z: Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.83.3-1789024493166/Dockerfile-with-features -t vsc-acode-ca861cbd8256f628f90859539eea093c0dd4362aecea353a43a405790b062762 --target dev_containers_target_stage --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.83.3-1789024493166 --build-arg _DEV_CONTAINERS_BASE_IMAGE=devcontainer --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /var/lib/docker/codespacemount/workspace/Acode/.devcontainer
    2026-09-10 07:15:57.929Z: Error code: 1302 (UnifiedContainersErrorFatalCreatingContainer)
    
    

    Changing the image to newer version mcr.microsoft.com/devcontainers/java:1-21-bookworm (debian 12) fixes this as it has longer LTS Support.

  2. rannlangelapproved these changes on 10 Sept 2026

  3. RohitKushvaha01merged this pull request on 10 Sept 2026

Copied from GitHub when this site was built; comments by bots are left out.