Docker-compose on raspberry pi pulling amd64 image

I’m trying to run a influxdb in a docker container in a raspberry pi. If i do a

docker pull influxdb

It works fine. However, when I try it in a docker compose it pulls the image for amd64.

pi@raspberrypi:~/influx $ docker --version
Docker version 19.03.13, build 4484c46
pi@raspberrypi:~/influx $ docker-compose --version
docker-compose version 1.27.4, build unknown
pi@raspberrypi:~/influx $ 

Dockerfile:

FROM "influxdb/influxdb:latest"

docker-compose file:

version: "3"
services:
  db:
    build: ./influxdb

I tried already do remove all containers with

docker system prune -a

But it always keeps pulling the amd version.

I would be glad for a hint.

Nicolas

Use the official image influxdb instead, it supports ARM and ARM64. influxdb/influxdb was not updated since 5 years.

1 Like

Hi

thank you - that was easy - thought I had the official repo.

Now it works:-)