devcontainers / templates

Repository for Dev Container Templates that are managed by Dev Container spec maintainers. See https://github.com/devcontainers/template-starter to create your own!
https://containers.dev/templates
MIT License
924 stars 242 forks source link

Mac M1 ARM64 DevContainers #123

Closed ghost closed 1 year ago

ghost commented 1 year ago

I attempted to build the following devcontainer (from Dockerfile):

FROM mcr.microsoft.com/devcontainers/go:0-1.19-buster

which returned the following error:

[6671637 ms] Start: Run: docker inspect --type image mcr.microsoft.com/devcontainers/go:0-1.19-buster
[6672523 ms] Error fetching image details: No manifest found for mcr.microsoft.com/devcontainers/go:0-1.19-buster.
[6672524 ms] Start: Run: docker pull mcr.microsoft.com/devcontainers/go:0-1.19-buster
0-1.19-buster: Pulling from devcontainers/go
no matching manifest for linux/arm64/v8 in the manifest list entries
[6674135 ms] []
[6674135 ms] Error: No such image: mcr.microsoft.com/devcontainers/go:0-1.19-buster

I noticed in some of the doc's - it mentions that you should use bullseye for ARM 64 - which did seem to work successfully. Just checking this is "as designed".

bamurtaugh commented 1 year ago

This sounds expected to me, but cc @samruddhikhandale to double check :)

samruddhikhandale commented 1 year ago

Yep, that's expected. Refer to https://github.com/microsoft/vscode-dev-containers/issues/558 for more details.

Feel free to reopen this issue if you have any followup questions, thanks!