spec icon indicating copy to clipboard operation
spec copied to clipboard

`--platform` option for the base image (the `image` field)

Open eitsupi opened this issue 3 years ago • 1 comments

When using a Dockerfile, the architecture of the image can be specified explicitly.

FROM --platform=linux/amd64 ubuntu:jammy

https://docs.docker.com/build/building/multi-platform/

Can the same thing be done in devcontainer.json?

eitsupi avatar Aug 06 '23 10:08 eitsupi

Hi 👋

Thanks for the 💡 , appreciate it! ✨

As the CLI already provides support for building multi-platform images, I think it's fair to add this support to the devcontainer.json.

// cc @chrmarti @joshspicer

samruddhikhandale avatar Aug 07 '23 21:08 samruddhikhandale