ich kann kein arm64 testen aber das mysql:latest funktioniert bei mir sofort
ein paar anpassungen musste ich an meine Umgebung machen
folgender Eintrag in der fstab
10.23.1.1:/vm-data/nfs-share /mnt/nfs-share nfs4 nofail,_netdev 0 0
anschließend mount -a abschicken
services:
mysqldb:
image: mysql:latest
container_name: mysqldb
restart: unless-stopped
volumes:
- /mnt/nfs-share/:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: extrageheim
MYSQL_DATABASE: testdb
MYSQL_USER: mysquser
MYSQL_PASSWORD: mysqpasswd
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -user==$$MYSQL_USER --password=$$MYSQL_PASSWORD"]
networks:
docker_subnet:
ipv4_address: 172.18.0.102
networks:
docker_subnet:
external: true
Dateien werden angelegt im share als user/gruppe 999:999
ausgabe der log vom container
2024-10-16 10:19:35+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 9.0.1-1.el9 started.
55
2024-10-16 10:19:36+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
56
2024-10-16 10:19:36+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 9.0.1-1.el9 started.
57
'/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
58
2024-10-16T10:19:36.280603Z 0 [System] [MY-015015] [Server] MySQL Server - start.
59
2024-10-16T10:19:36.477729Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 9.0.1) starting as process 1
60
2024-10-16T10:19:36.485963Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
61
2024-10-16T10:19:36.993176Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
62
2024-10-16T10:19:37.355471Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
63
2024-10-16T10:19:37.355496Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
64
2024-10-16T10:19:37.360193Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
65
2024-10-16T10:19:37.437157Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '9.0.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
66
2024-10-16T10:19:37.437165Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
für mich sieht das so aus das alles normal leuft, der startet nicht ständig neu