rdouro
(Rdouro)
August 25, 2022, 4:19pm
1
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
terpz
(Martin Terp)
August 25, 2022, 6:01pm
2
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
rdouro
(Rdouro)
August 25, 2022, 7:02pm
3
Hi now give these pi@raspberrypi:~/exe_docker $ docker-compose up
ERROR: no such image: “mariadb:latest”: invalid reference format
Tank you
terpz
(Martin Terp)
August 25, 2022, 7:05pm
4
try and remove the " around it
rdouro
(Rdouro)
August 26, 2022, 10:47am
5
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
terpz
(Martin Terp)
August 26, 2022, 3:10pm
6
Your DB is different, your password is different
rdouro
(Rdouro)
August 26, 2022, 4:10pm
7
Can you tell me which line is wrong?
terpz
(Martin Terp)
August 26, 2022, 4:13pm
8
The password/user/database should be the same both places
rimelek
(Ákos Takács)
August 26, 2022, 5:12pm
9
Please read this tutorial to format your post properly:
The Docker forum is using Discourse , which supports several ways to format your posts:
Markdown; see commonmark.org/help for an interactive tutorial
BBCode
A small selection of HTML
Any combination of the above
Blank lines for formatting and readability
Quite often you’ll need an empty line above specific formatting to make it work.
You also need to type blank lines to create proper paragraphs; just pressing Return once and then typing a new block of text right below a previous block only…
This way you can help us to understand your question better.
@terpz fixed your first comment. 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.
rdouro
(Rdouro)
September 4, 2022, 11:03pm
10
thanks I already installed it but I can’t access mysql
gustavo1357
(Gustavo Torres)
October 18, 2022, 10:02pm
11
In the tutorial comes a solution, and is to use the --platform flag:
shwowak
(Shwowak)
May 24, 2023, 3:28pm
12
pi@raspberrypi:~ $ sudo docker compose up -d
[+] Running 0/11
⠋ evcc 6 layers [⠀⠀⠀⠀⠀⠀] 0B/0B Pulling 11.1s
⠋ grafana 9 layers [⠀⠀⠀⠀⠀⠀⠀⠀⠀] 0B/0B Pulling 11.1s
⠋ influxdb Pulling 11.1s
⠋ mosquitto 3 layers [⠀⠀⠀] 0B/0B Pulling 11.1s
⠋ iobroker 4 layers [⠀⠀⠀⠀] 0B/0B Pulling 11.1s
⠋ pialert 5 layers [⠀⠀⠀⠀⠀] 0B/0B Pulling 11.1s
⠋ nodered_Handy 17 layers [⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀] 0B/0B Pulling 11.1s
⠋ portainer 3 layers [⠀⠀⠀] 0B/0B Pulling 11.1s
⠋ chronograf Pulling 11.1s
⠋ nodered Pulling 11.1s
⠋ teslamate 6 layers [⠀⠀⠀⠀⠀⠀] 0B/0B Pulling 11.1s
no matching manifest for linux/arm/v8 in the manifest list entries
``` docker-compose-plugin (2.18.1-1~raspbian.10~buster)
meyay
(Metin Y.)
May 24, 2023, 7:14pm
13
Are you sharing this output to let us know that you use a compose file with plenty of services where at least one container does not provide an image for linux/arm/v8
?
You can actually see in “tags” tab of the Dockerhub repo whether a tag is available as multi-arch images and the architectures they support.