本文介绍了Raspberry-pi docker错误:standard_init_linux.go:178:exec用户进程导致"exec格式错误";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照官方说明将docker安装在rapsbian中(即运行curl -sSL https://get.docker.com | sh),但是我无法运行hello-world示例(我也尝试了其他示例但未成功).这是我得到的错误:

I've installed docker in rapsbian according to the official instructions (i.e., running curl -sSL https://get.docker.com | sh) but I'm not able to run the hello-world example (I've also tried other examples without success). This is the error I'm getting:

pi@raspberrypi2:~ $ docker run hello-world
standard_init_linux.go:178: exec user process caused "exec format error"

我的环境是具有Raspbian GNU/Linux 8(jessie)和Docker版本17.03.0-ce的Raspberry Pi 2 Model B,版本为60ccb22.

My environment is Raspberry Pi 2 Model B with Raspbian GNU/Linux 8 (jessie) and Docker version 17.03.0-ce, build 60ccb22.

有关该问题的任何提示或解决该问题的可能方向?

Any hint about the problem or possible directions to solve the problem?

非常感谢!

推荐答案

Raspberry使用ARM而不是x86_64处理器.您只能运行为该体系结构创建的映像.尝试在docker hub上搜索ARM或ARMv7.我知道有一个 Debian 映像,但必须有其他映像好吧.

Raspberries use ARM and not x86_64 processors. You can only run images created for that architecture. Try searching for ARM or ARMv7 on docker hub. There is a Debian image for ARM I know of but there must be others as well.

潜在的问题是ARM使用的二进制格式与大多数台式机和服务器系统使用的体系结构x86_64不兼容.

The underlying issue is that the binary format used by ARM is not compatible with x86_64, which is the architecture used by most desktop and server systems.

这篇关于Raspberry-pi docker错误:standard_init_linux.go:178:exec用户进程导致"exec格式错误";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 22:16