aws-samples / aws-iot-securetunneling-localproxy

AWS Iot Secure Tunneling local proxy reference C++ implementation
https://docs.aws.amazon.com/iot/latest/developerguide/what-is-secure-tunneling.html
Apache License 2.0
74 stars 71 forks source link

ERROR: failed to solve: amazonlinux:latest: no match for platform in manifest #124

Closed 2788west closed 1 year ago

2788west commented 1 year ago

Trying to run the docker build ./docker-build.sh on a Raspberry Pi Zero 2 W (Raspbian Bullseye) and Docker 23.0.1 produces the follwoing error:

ERROR: failed to solve: amazonlinux:latest: no match for platform in manifest sha256:1bed949a5cbe3aa92107828d42f08f33dd2c1f1c46178831b3face787853f628: not found

Full trace below:

Architecture: armv7l
OpenSSL configurations: linux-generic64
[+] Building 1.8s (3/3) FINISHED
 => [internal] load .dockerignore                                                                                                                                                                                                                                            0.1s
 => => transferring context: 2B                                                                                                                                                                                                                                              0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                         0.2s
 => => transferring dockerfile: 3.30kB                                                                                                                                                                                                                                       0.0s
 => ERROR [internal] load metadata for docker.io/library/amazonlinux:latest                                                                                                                                                                                                  1.5s
------
 > [internal] load metadata for docker.io/library/amazonlinux:latest:
------
Dockerfile:92
--------------------
  90 |     ## Actual docker image
  91 |
  92 | >>> FROM amazonlinux:latest
  93 |
  94 |     # Install openssl for libssl dependency.
--------------------
ERROR: failed to solve: amazonlinux:latest: no match for platform in manifest sha256:1bed949a5cbe3aa92107828d42f08f33dd2c1f1c46178831b3face787853f628: not found

Full Raspberry Pi Os version:

PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Minimum reproducable example:

git clone https://github.com/aws-samples/aws-iot-securetunneling-localproxy.git
cd aws-iot*
./docker-build.sh
RogerZhongAWS commented 1 year ago

Hello, unfortunately amazonlinux docker images do not support armv7l, only armv8 :(

2788west commented 1 year ago

Thanks @RogerZhongAWS! I was indeed able to build the docker image with the 64bit version of Rasbian. Perhaps as a convenience to new users, it would be useful to highlight what architectures are currently supported?

RogerZhongAWS commented 1 year ago

Sure, I'll make that update in the README in my open PR for Docker images.