-
Notifications
You must be signed in to change notification settings - Fork 331
Add a platform property to the devcontainer.json #10757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You could use a |
I can confirm that does work as an alternative. Already had it set up, but wanted to flag the issue since it was a bit unintuitive. |
|
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
adding Would ideally just be able to have that option apply to build and have that work out of the box. |
This feature request has not yet received the 10 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation. Happy Coding |
🙁 In the last 60 days, this feature request has received less than 10 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
Steps to Reproduce:
devcontainer.json
like:Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: n/a
The issue here is that when there is something set for
features
indevcontainer.json
before executing thedocker run
command to start up the container it doesdocker buildx build
to add in the feature. The problem is that the build command does not have the--platform=linux/amd64
flag when building. Then when it doesdocker run
to start up the container that flag is present. Since I'm running on an ARM Mac it is building for thelinux/arm64
platform because there is no flag, and when it goes to run it tries to use the image that was built but it was for the wrong platform.The text was updated successfully, but these errors were encountered: