在 raspberry Pi 运行 docker 处出错

Error at running docker on raspberry Pi

按照本指南在 Rasberry Pi 3B+ stretch 上安装 docker

https://docs.docker.com/install/linux/docker-ce/debian/#install-using-the-convenience-script

并安装 docker-compose via pip install.

但是错误 docker run --rm -it tiangolo/uwsgi-nginx:python3.5 /bin/sh standard_init_linux.go:190: exec 用户进程导致 "exec format error"

但它与此一起工作。 docker run --rm -it ubuntu:16.04 /bin/sh

是不是image和rpi不兼容的原因?

您是否尝试过使用:

docker run --rm -it tiangolo/uwsgi-nginx:python3.6 /bin/sh

由于您使用的是 Raspberry Pi,因此 CPU 架构是 ARM。您正在使用 tiangolo/uwsgi-nginx:python3.5 但是...

来自hub.docker.com/r/tiangolo/uwsgi-nginx/

What's new

Note: although Raspberry Pi can now compile and run the image, Docker Hub doesn't have an automated building process for other architectures yet. https://github.com/docker/hub-feedback/issues/1261 * 2017-12-09: The version based in Python 3.6 now supports multiple architectures apart from AMD64 using the new Docker multi-architecture features. It was tested on an ARMv7 32 bits (Raspberry Pi 3 B). To achieve that, the Python 3.6 version now uses a copy of the latest Nginx image which is based on the latest Debian version (Debian Stretch). In the official Python image, there's a Stretch version only for Python 3.6. So, that's the only one that can be merged with the current Nginx image. That's why, in this image, only Python 3.6 supports multi-arch.