-
Notifications
You must be signed in to change notification settings - Fork 285
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
Error building devcontainers in Linux/ARM64 in WSL2 #3672
Comments
Full console output:
|
I am sadly lacking a device to try this on. @fiveisprime Do you have a Surface Pro X still? These definitions are not setup for ARM devices currently, but where it is failing really doesn't have anything x86_64 specific. It could be something else. (I also created microsoft/vscode-dev-containers#558 as a feature request for general ARM support) |
All binaries in that image are compiled for x86_64. The error indicates that it cannot run |
Try changing the Dockerfile to use arm64 images instead of x64 ones. FROM mcr.microsoft.com/dotnet/core/sdk:${VARIANT} to FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster-arm64v8 You can see the tags of the images provided by Microsoft on: I hope that helps |
Wasn't aware we already have them. Thanks @lucashernangregori. Closing. |
Thanks everyone, that makes sense that I'd need to change the base image on a case by case basis. The fact that everything from .NET to Node to Python devcontainers failed in the exact same way made me think there might be a common solution, but I see now that they were just all failing trying to execute Looking at the docs, I should be able to rig something up referencing an environment variable in the |
I'm unsure if this is the right place to report this, so apologies if I've got it wrong.
Versions
vscode-remote-try-dotnetcore
vscode-remote-try-node
vscode-remote-try-python
The above are just the sample repos which I've tried so far. I've also tried it on my own repo which uses an anaconda devcontainer and get the same behavior.
Issue Description
This issue is simplest to reproduce on the command line as shown below. However I get the same issue when trying to start the devcontainer in VSCode through the "Remote - WSL" with "Remote - Containers" extensions.
I'm running these commands on a Surface Pro X, with Ubuntu 20.04 running in WSL2, Docker and Git both installed in Ubuntu.
Steps to Reproduce
git clone https://github.com/microsoft/vscode-remote-try-dotnetcore.git
cd vscode-remote-try-dotnetcore
cd .devcontainer
docker build .
Expected behavior
Container should build successfully.
Actual Behaviour
standard_init_linux.go:211: exec user process caused "exec format error"
The text was updated successfully, but these errors were encountered: