yobasystems / alpine-mariadb

MariaDB running on Alpine Linux [Docker]
https://hub.docker.com/r/yobasystems/alpine-mariadb/
242 stars 72 forks source link

Run on Raspberry Pi 4 (march64) Docker "exited with code 159" #73

Closed rwzdoorn closed 9 months ago

rwzdoorn commented 9 months ago

I'm running the following docker compose on a Raspberry Pi 4 (64bit):

image: yobasystems/alpine-mariadb:aarch64
platform: linux/arm64/v8

When it's build, It stops and gives the 159 error. There is no log when using docker logs .

dominictayloruk commented 9 months ago

What does docker version give?

dominictayloruk commented 9 months ago

Quick test on Ubuntu arm64 host, kernel info uname -a

Linux ubuntu-dev-arm64 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 20:26:31 UTC 2 aarch64 aarch64 aarch64 GNU/Linux

Now check docker version looking for OS/Arch: linux/arm64

Client: Docker Engine - Community
 Version:           25.0.0
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        e758fe5
 Built:             Thu Jan 18 17:10:21 2024
 OS/Arch:           linux/arm64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          25.0.0
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       615dfdf
  Built:            Thu Jan 18 17:10:21 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.27
  GitCommit:        a1496014c916f9e62104b33d1bb5bd03b0858e59
 runc:
  Version:          1.1.11
  GitCommit:        v1.1.11-0-g4bccb38
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Now a quick run command;

docker run -it --name mysql -e MYSQL_DATABASE=wordpressdb -e MYSQL_USER=wordpressuser -e MYSQL_PASSWORD=hguyFt6S95dgfR4ryb -e MYSQL_ROOT_PASSWORD=hguyFtgfR4r9R4r76 yobasystems/alpine-mariadb:aarch64

Unable to find image 'yobasystems/alpine-mariadb:aarch64' locally
aarch64: Pulling from yobasystems/alpine-mariadb
826a9d0ce391: Already exists
73d0ee34d70d: Pull complete
513759d24969: Pull complete
76228d0fc2a9: Pull complete
Digest: sha256:39ca0ad19df96a0bcdd50e92e5df62024757bdb77c5b9cddc945b2afbc2792c0
Status: Downloaded newer image for yobasystems/alpine-mariadb:aarch64
[i] mysqld not found, creating....
[i] MySQL data directory not found, creating initial DBs
[i] Creating database: wordpressdb
[i] with character set: 'utf8' and collation: 'utf8_general_ci'
[i] Creating user: wordpressuser with password hguyFt6S95dgfR4ryb
2024-01-22 17:34:32 0 [Note] Starting MariaDB 10.11.5-MariaDB source revision 7875294b6b74b53dd3aaa723e6cc103d2bb47b2c as process 53
2024-01-22 17:34:32 0 [Note] InnoDB: Compressed tables use zlib 1.3
2024-01-22 17:34:32 0 [Note] InnoDB: Number of transaction pools: 1
2024-01-22 17:34:32 0 [Note] InnoDB: Using ARMv8 crc32 + pmull instructions
2024-01-22 17:34:32 0 [Note] mysqld: O_TMPFILE is not supported on /var/tmp (disabling future attempts)
2024-01-22 17:34:32 0 [Note] InnoDB: Using Linux native AIO
2024-01-22 17:34:32 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2024-01-22 17:34:32 0 [Note] InnoDB: Completed initialization of buffer pool
2024-01-22 17:34:33 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
2024-01-22 17:34:33 0 [Note] InnoDB: End of log at LSN=46572
2024-01-22 17:34:33 0 [Note] InnoDB: 128 rollback segments are active.
2024-01-22 17:34:33 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-01-22 17:34:33 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-01-22 17:34:33 0 [Note] InnoDB: log sequence number 46572; transaction id 14
2024-01-22 17:34:33 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-01-22 17:34:33 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2024-01-22 17:34:33 1 [Warning] 'user' entry '@2ef116dadc39' ignored in --skip-name-resolve mode.
2024-01-22 17:34:33 1 [Warning] 'proxies_priv' entry '@% root@2ef116dadc39' ignored in --skip-name-resolve mode.
2024-01-22 17:34:33 0 [Note] InnoDB: Buffer pool(s) load completed at 240122 17:34:33
2024-01-22 17:34:33 1 [Warning] 'user' entry '@2ef116dadc39' ignored in --skip-name-resolve mode.
2024-01-22 17:34:33 1 [Warning] 'proxies_priv' entry '@% root@2ef116dadc39' ignored in --skip-name-resolve mode.

MySQL init process done. Ready for start up.

exec /usr/bin/mysqld --user=mysql --console --skip-name-resolve --skip-networking=0
2024-01-22 17:34:33 0 [Note] Starting MariaDB 10.11.5-MariaDB source revision 7875294b6b74b53dd3aaa723e6cc103d2bb47b2c as process 1
2024-01-22 17:34:33 0 [Note] InnoDB: Compressed tables use zlib 1.3
2024-01-22 17:34:33 0 [Note] InnoDB: Number of transaction pools: 1
2024-01-22 17:34:33 0 [Note] InnoDB: Using ARMv8 crc32 + pmull instructions
2024-01-22 17:34:33 0 [Note] mysqld: O_TMPFILE is not supported on /var/tmp (disabling future attempts)
2024-01-22 17:34:33 0 [Note] InnoDB: Using Linux native AIO
2024-01-22 17:34:33 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2024-01-22 17:34:33 0 [Note] InnoDB: Completed initialization of buffer pool
2024-01-22 17:34:33 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
2024-01-22 17:34:33 0 [Note] InnoDB: End of log at LSN=46572
2024-01-22 17:34:33 0 [Note] InnoDB: 128 rollback segments are active.
2024-01-22 17:34:33 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-01-22 17:34:33 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-01-22 17:34:33 0 [Note] InnoDB: log sequence number 46572; transaction id 14
2024-01-22 17:34:33 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2024-01-22 17:34:33 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-01-22 17:34:33 0 [Note] InnoDB: Buffer pool(s) load completed at 240122 17:34:33
2024-01-22 17:34:33 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-01-22 17:34:33 0 [Note] Server socket created on IP: '::'.
2024-01-22 17:34:33 0 [Warning] 'user' entry '@2ef116dadc39' ignored in --skip-name-resolve mode.
2024-01-22 17:34:33 0 [Warning] 'proxies_priv' entry '@% root@2ef116dadc39' ignored in --skip-name-resolve mode.
2024-01-22 17:34:33 0 [Note] /usr/bin/mysqld: ready for connections.
Version: '10.11.5-MariaDB'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Alpine Linux

Image seems to work correctly on my host.

Are you running a 32 bit OS?

rwzdoorn commented 9 months ago

Looks like an error with docker on my end. Started testing this image on a RPI 5 and works like a charm. This topic can be closed.