dockermariadb

Error starting mariaDB on docker-compose build


After do a images rm, volumes rm and docker prune i got this error starting mariaDB on with docker-compose

This is the db compose part (yml):

mariaDB:
image: 'mariadb:latest'
environment:
  - MYSQL_ROOT_PASSWORD=root_password

The error log:

mariaDB_1                      | 2022-05-27 20:14:42+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.8.3+maria~jammy started.
mariaDB_1                      | 2022-05-27 20:14:42+00:00 [ERROR] [Entrypoint]: 
mariadbd failed while attempting to check config
mariaDB_1                      |        command was: mariadbd --verbose --help --log-bin-index=/tmp/tmp.JMRNT5ajM6
mariaDB_1                      |        Can't initialize timers
services_mariaDB_1 exited with code 1

Thanks in advance!


Solution

  • Same problem here with latest docker container of MariaDB and the latest tag. Pinning to 10.8.2 (mariadb:10.8.2) in docker-compose fixes this issue.db:

    This is my new image line and with 10.8.2 it keeps working. In the mariadb issue tracker is already a discussion going so they are working on this.

    image: mariadb:10.8.2