首页 > 解决方案 > 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

标签: imagedockernvidia-jetson

解决方案


看起来该命令可以很好地docker run提取图像,但运行部分失败。django

Django:latest泊坞窗图像是唯一的x86-64图像。但是当您使用 Jetson Nano(Arm 架构)时,您应该找到(或构建)arm64兼容的 docker 映像,而不是x86-64.

您的示例中的其他两个命令在没有相同错误的情况下完成,只是在做拉动部分。但是它们很可能仍然可以正常运行,因为它们都是Arm64兼容的。

您可以在dockerhub上的图像下找到标签。


推荐阅读