GoogleCloudPlatform / cloud-spanner-emulator

An open source emulator for Cloud Spanner.
Apache License 2.0
273 stars 45 forks source link

Pre-built docker image not supporting arm64 since v1.5.9 #132

Closed mrtoth closed 1 year ago

mrtoth commented 1 year ago

Since v1.5.9 the docker image doesn't support arm64.

With the following docker-compose.yaml:

---
version: "2.4"

services:
  spanner:
    image: gcr.io/cloud-spanner-emulator/emulator:1.5.10
    platform: linux/arm64/v8
    container_name: spanner
    restart: always
    ports:
      - "9010:9010"
      - "9020:9020"

You get: Error response from daemon: image with reference gcr.io/cloud-spanner-emulator/emulator:1.5.10 was found but does not match the specified platform: wanted linux/arm64/v8, actual: linux/amd64

v1.5.8 works fine.

skuruppu commented 1 year ago

@mrtoth thanks for your patience with this issue.

I'm not really sure why v1.5.9 was giving you issues as we did have an arm64 version there. We had some issues building for arm64 with v1.5.10 but that issue has been fixed since then.

Please try gcr.io/cloud-spanner-emulator/emulator:1.5.10 and let us know if you're still running into issues.