Error when running mysql on raspberry / ARM: ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries

Hello all i need same help i install docker and docker compose
i try install wordpress phpmyadmin ins my raspberry pi 4 8GB
itry these configuration but with out sucess same one can help me ?

version: '3.1'

services:

  wordpress:
    image: wordpress
    restart: always
    ports:
      - 8080:80
    environment:
      WORDPRESS_DB_HOST: db
      WORDPRESS_DB_USER: pi
      WORDPRESS_DB_PASSWORD: 
      WORDPRESS_DB_NAME: exampledb
    volumes:
      - wordpress:/var/www/html

  db:
    image: mysql:5.7
    restart: always
    environment:
      MYSQL_DATABASE: exampledb
      MYSQL_USER: Adminp
      MYSQL_PASSWORD: 
      MYSQL_RANDOM_ROOT_PASSWORD: ''
    volumes:
      - db:/var/lib/mysql

volumes:
  wordpress:
  db:

i make command docker-compose up but afther appeares these info version: ‘3.1’

after put run docker-compose up give me these info :
Pulling db (mysql:5.7)…
5.7: Pulling from library/mysql
ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries

how i can fixed

tank you

Hi

It means that mysql didnt make an image that support ARM, try switching “mysql:5.7” out with “mariadb:latest”

also your WORDPRESS_DB_PASSWORD and MYSQL_PASSWORD needs to be the same, also WORDPRESS_DB_USER and MYSQL_USER

Hi now give these pi@raspberrypi:~/exe_docker $ docker-compose up
ERROR: no such image: “mariadb:latest”: invalid reference format

Tank you

try and remove the " around it

hello i try these configuration version: ‘3.1’

services:

wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: pi
WORDPRESS_DB_PASSWORD: Papi##
WORDPRESS_DB_NAME: radiodb
volumes:
- wordpress:/var/www/html

db:
image: mysql
restart: always
ports:
- 3306:3306
environment:
MYSQL_DATABASE: radioddb
MYSQL_USER: pi
MYSQL_PASSWORD: Papi#
MYSQL_RANDOM_ROOT_PASSWORD: ‘Papi#’
volumes:
- db:/var/lib/mysql

volumes:
wordpress:
db:

but when i go brouse localhost:8080/wordpress appears issiues Error establishing a database connection

can ou mhelp me ?
tank you

Your DB is different, your password is different

Can you tell me which line is wrong?

The password/user/database should be the same both places

Please read this tutorial to format your post properly:

This way you can help us to understand your question better.

@terpz fixed your first comment. :+1: so I let you to try to fix the other one. Thank you!

myssql:5.7 did not support ARM. MySQL 8 images has ARM support, but only the oracle variants, not the images with the “debian” suffix.

There is an other MySQL image which is maintained by the MySQL team: mysql/mysql-server

It has ARM support for MySQL 8 but not for MySQL 5.7.

MariaDB is similar to MySQL but not the same. They have a compatibility description: MariaDB versus MySQL - Compatibility - MariaDB Knowledge Base

I don’t know if switching ot MariaDB is better or worse than using MySQL, but that is decision which is not related to Docker.

thanks I already installed it but I can’t access mysql