-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Build a docker arm32 image for Raspberry Pi Debian Jessie - From Linux Ubuntu x64 #775
Comments
@tonyawad88 - Building arm32 images on amd64 is not supported. There are some general workarounds various people have some success with involving QEMU but .NET Core does not support running w/QEMU. When you changed the base image to Can you clarify what you meant by the following?
Were you following a link from the full description on Docker Hub or this repo's readme? If so what link were you using? The Dockerfile for the |
@MichaelSimons It was the link for the arm32 sample on the main dotnet-docker page. Link: https://github.com/dotnet/dotnet-docker, broken link is under section ARM32 / Raspberry Pi (first bullet, second link) If I understand correctly, there's 2 ways to tackle this:
Thank you for the information ! |
I tried #2 with the Dockerfile using the multi-arch tag "https://github.com/tonyawad88/AspNetCore-with-Docker/blob/master/Dockerfile" and pushed to docker cloud. Then ran the following command from the raspberry pi with no luck: I still got the following: Any help is greatly appreciated. |
@tonyawad88 - there are three ways I'd suggest building your arm Dockerfiles.
|
@MichaelSimons Thank you Michael. The first one worked great, pulled the code to the arm32 system, built and ran the app and it worked great. The 2nd one, I didn't quite understand, if you can elaborate that would be amazing. The 3rd point, I tried building on amd64 the following dockerfile:
Tagged it and pushed it to docker cloud and then pulled and ran from the arm32 with no luck. I am still getting the Any thoughts on the point 3 you suggested, would be greatly appreciated. |
@tonyawad88, The second approach is to do the following.
Regarding your Dockerfile that follows my third suggestion. I see you are building a self-contained app. When building a self-contained app, an executable is created. This is what you would launch because there is no dotnet runtime installed that provides |
@tonyawad88, hopefully I answered your questions. I also want to call out that the broken readme links were updated as well (#781). Closing. |
… executable itself.
Hello,
I tried running your image from the docker repo on the raspberry pi 3 debian jessie and it works great:
docker run --rm -it -p 8000:80 microsoft/dotnet-samples:aspnetapp
However, when I try to build a simple barebone aspnet core app v2.1 from my linux ubuntu x64 dev box, I can't seem to make it run on the rpi.
Dockerfile: (repo: https://github.com/tonyawad88/AspNetCore-with-Docker)
Running the above on the ubuntu dev box: returns:
standard_init_linux.go:190: exec user process caused "exec format error"
I tried switching the
FROM microsoft/dotnet:2.1-sdk-stretch-arm32v7 AS build
toFROM microsoft/dotnet:2.1-sdk AS build
to build on the ubuntu x64. It builds fine but when I try to run on rpi3:docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"dotnet\": executable file not found in $PATH": unknown.
Any help is greatly appreciated.
Minor note: The arm32 Dockerfile is missing from this repo.
Thank you!
Output of
docker version
Output of
docker info
The text was updated successfully, but these errors were encountered: