cluttrdev / gitlab-exporter-clickhouse-recorder

A gitlab-exporter gRPC server endpoint that records data in ClickHouse.
MIT License
0 stars 1 forks source link

Docker Compose up -d fails to launch clickhouse reporter due to image platform mismatch #1

Open jorgalad opened 1 month ago

jorgalad commented 1 month ago

When running docker-compose up -d to launch the clickhouse reporter, the following error occurred:

! gitlab-exporter-clickhouse-recorder-migrate The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
! gitlab-exporter-clickhouse-recorder The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
! gitlab-exporter The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
dependency failed to start: container clickhouse exited (126)
It appears that the requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8), and no specific platform was requested. This is preventing the clickhouse reporter container from starting.

Steps to reproduce:

Run docker-compose up -d to launch the clickhouse reporter.

Expected result: Clickhouse reporter container starts successfully.

Actual result: Clickhouse reporter container fails to start due to image platform mismatch.

Additional information:

Docker version: 4.29 Docker Compose version: v2.26.1 Operating system: MacOS 14.4 (Sonoma)

cluttrdev commented 1 month ago

Hi, yeah I've only built linux/amd64 container images for now. Can you try adding

platform: linux/amd64

to the docker-compose.yaml?