Raspberry-pi docker 错误:standard_init_linux.go:178: exec 用户进程导致“exec 格式错误" [英] Raspberry-pi docker error: standard_init_linux.go:178: exec user process caused "exec format error"

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

问题描述

我已经根据官方说明在 rapsbian 中安装了 docker(即,运行 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?

非常感谢!

推荐答案

树莓派使用 ARM 而不是 x86_64 处理器.您只能运行为该架构创建的映像.尝试在 docker hub 上搜索 ARM 或 ARMv7.我知道 ARM 有一个 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 格式错误"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆