image - Ubuntu 18.04 上的 Nvidia Jetson Nano 完成 docker run 并出现“exec 格式错误”
问题描述
Ubuntu 18.04 上的 NVidia Jetson Nano 完成了 docker run with standard_init_linux.go:211: exec user process caused "exec format error"
,但一些图像运行完全正常。
organic@jetson:~$ docker run -it --rm -p 8080:8080 django
Unable to find image 'django:latest' locally
latest: Pulling from library/django
75a822cd7888: Pull complete
e4665cede9d1: Pull complete
202a45aa091c: Pull complete
7799136eb561: Pull complete
7a7f9ca3fd40: Pull complete
412f2d081014: Pull complete
Digest: sha256:5bfd3f442952463f5bc97188b7f43cfcd6c2f631a017ee2a6fca3cb8992501e8
Status: Downloaded newer image for django:latest
standard_init_linux.go:211: exec user process caused "exec format error"
organic@jetson:~$ docker pull nginx:latest
latest: Pulling from library/nginx
Digest: sha256:50cf965a6e08ec5784009d0fccb380fc479826b6e0e65684d9879170a9df8566
Status: Image is up to date for nginx:latest
docker.io/library/nginx:latest
organic@jetson:~$ docker pull hello-world
Using default tag: latest
latest: Pulling from library/hello-world
be6e184261a6: Pull complete
Digest: sha256:4fe721ccc2e8dc7362278a29dc660d833570ec2682f4e4194f4ee23e415e1064
Status: Downloaded newer image for hello-world:latest
docker.io/library/hello-world:latest
解决方案
看起来该命令可以很好地docker run
提取图像,但运行部分失败。django
Django:latest
泊坞窗图像是唯一的x86-64
图像。但是当您使用 Jetson Nano(Arm 架构)时,您应该找到(或构建)arm64
兼容的 docker 映像,而不是x86-64
.
您的示例中的其他两个命令在没有相同错误的情况下完成,只是在做拉动部分。但是它们很可能仍然可以正常运行,因为它们都是Arm64
兼容的。
您可以在dockerhub上的图像下找到标签。
推荐阅读
- kdb - 有没有更优雅/更实用的方法来计算平均价格?
- flutter - 检测用户何时未在 Flutter 中与应用程序交互
- php - Laravel 5.6 如何重定向到移动应用程序网址?
- visual-studio-code - Visual Studio Code 的 Inc-Dec-Value 包?
- c - 将元素添加到数组,随机数结果
- numpy - Pytorch TypeError: eq() 收到了无效的参数组合
- ios - 在 Xcode 中快速拖动 UIImage
- matlab - 如何找到 norm(a,2)==c 的唯一解;当 c 是标量且 a=[x abs(1/x);x+1 1/x]
- c# - 如何在 Azure 中处理客户端证书
- api - YouTube iFrame API“setPlaybackQuality”不起作用