Raspberry-pi docker error: standard_init_linux.go:178: exec user process caused "exec format error"

Raspberry-pi docker error: standard_init_linux.go:178: exec user process caused "exec format error"

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

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

我的环境是 Raspberry Pi 2 Model B with Raspbian GNU/Linux 8 (jessie) and Docker version 17.03.0-ce, build 60ccb22.

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

非常感谢!

Raspberries 使用 ARM 而不是 x86_64 处理器。您只能 运行 为该架构创建的图像。尝试在 docker 集线器上搜索 ARM 或 ARMv7。我知道有一个 Debian ARM 图像,但肯定还有其他图像。

根本问题是 ARM 使用的二进制格式与 x86_64 不兼容,这是大多数桌面和服务器系统使用的体系结构。

添加到文件开头:

#!/bin/bash 

对我有用