docker - Raspberry 4b上Docker镜像内的.NET Core

标签 docker .net-core raspberry-pi arm containers

我安装了Raspbian的Raspberry PI 4b。
还安装了Docker,它似乎可以正常工作(已使用docker run hello-world对其进行了测试)。

但是,我试图从Microsoft运行.NET Core samples容器。
uname m返回arm71,这意味着它是linux arm32体系结构。

当我运行docker run -it --rm mcr.microsoft.com/dotnet/core/samples:dotnetapp-buster-slim-arm32v7时,我不断收到' standard_init_linux.go:211:exec用户进程导致“exec格式错误” '。

据我了解,这基本上意味着我的容器针对的是错误的体系结构。所以我尝试了所有其他架构,但仍然没有结果。

我的目标是在Raspberry上的docker容器内运行一个简单的.NET Core 3.0 API。这应该只是第一步,但是却给我带来了困难。

最佳答案

原来上述步骤是正确的。仅仅是来自Microsoft的mcr.microsoft.com/dotnet/core/samples镜像已损坏/不起作用。
诸如运行时之类的其他程序运行正常。

关于docker - Raspberry 4b上Docker镜像内的.NET Core,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58330731/

相关文章:

node.js - PM2 不会在 Docker 内部启动

amazon-web-services - EBS 卷显示没有挂载点

java - 如何授予 Tomcat 9 访问其他文件的权限

docker - 使用自签名证书配置本地注册表

node.js - Gitlab CI/CD 管道给出 Dockerfile 错误

c++ - 如何在 windowsservercore docker 容器中安装 dotnetcore

c# - 多线程 API 应用程序中的 EF 核心 DbContext

c# - BuildManager.Add Reference Assembly in Net CORE

树莓派上的 OpenCV 错误 : HIGHGUI ERROR: v4l/v4l2: VIDIOC_CROPCAP

python - 树莓派开机时运行Python SimpleHTTPServer