microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.7k stars 1.41k forks source link

Base image for Ubuntu Focal not available for arm64 architecture #1683

Closed iemejia closed 1 year ago

iemejia commented 1 year ago

I was checking the platform support for some devcontainer images on arm64 and just noticed that various ubuntu images support arm64 but the focal images do not.

Can we get that architecture arm64 published for Ubuntu Focal too? or this is not available because of some particular issue? (if so maybe we should document it somewhere that it is not available, we struggled with a related issue while trying to use the derived dotnet:focal image on an arm64 system).

Steps to Reproduce:

$ docker run --rm mplatform/mquery mcr.microsoft.com/vscode/devcontainers/base:focal

Image: mcr.microsoft.com/vscode/devcontainers/base:focal (digest: sha256:ce4ae5134a435185a8a2052eab6d0ee2ad04f5f062a78377cc348ad9d8eab6f2)
 * Manifest List: No (Image type: application/vnd.docker.distribution.manifest.v2+json)
 * Supports: linux/amd64

$ docker run --rm mplatform/mquery mcr.microsoft.com/vscode/devcontainers/base:jammy

Image: mcr.microsoft.com/vscode/devcontainers/base:jammy (digest: sha256:1056dcb30c2510505fb344195f138c3a59d9323b09411045953490cc9afdd388)
 * Manifest List: Yes (Image type: application/vnd.docker.distribution.manifest.list.v2+json)
 * Supported platforms:
   - linux/amd64
   - linux/arm64

$ docker run --rm mplatform/mquery mcr.microsoft.com/vscode/devcontainers/base:bionic

Image: mcr.microsoft.com/vscode/devcontainers/base:bionic (digest: sha256:65563e258b3d994cfd015ee853cbcb75c5313837537bd7709e23c6c328fc98ca)
 * Manifest List: Yes (Image type: application/vnd.docker.distribution.manifest.list.v2+json)
 * Supported platforms:
   - linux/amd64
   - linux/arm64
Chuxel commented 1 year ago

This is expected. See https://github.com/microsoft/vscode-dev-containers/issues/558

Docker Desktop bombs randomly with arm64 focal and debian buster due to a bug in libcurl among other things. The same goes for buildx which prevents us from being able to cross compile. Even if we could, the majority of users would hit random crashes.

Chuxel commented 1 year ago

Closing as a dupe of https://github.com/microsoft/vscode-dev-containers/issues/558.