docker-library / docker-library/mysql

Issue running LTS (8.4) Docker container on Ubuntu 24.04 (works with v8-debian)

Open
#1,131 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
2.6k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

Hi everyone!
It caused me headache the last couple of days... i found something...
I have a new Ubuntu Server and wanted to run mysql:lts on docker

I always got the Errors:
[ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
[ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.

But my folder was absolutely empty... i checked the internet, found some folkes had the same issue, but no solution to the error...
Played around with local users like 999:999 or a dedicated mysql user... nothing worked....

After countless tries ... I decided to try other images, so i ran the same container settings with mysql:8-debian
IT WAS RUNNING OUT OF THE BOX ... i thought... WTF - why ??
When i tried do find a newer debian version... no-no... seems mysql decided to quit debian sources after v8.0
you guys now only go with oraclelinux as base-image... :-(

Is there a way to fix that issue MY-013236 for Docker containers running on Debian / Ubuntu hosts?
Or better, is there any chance that we get the debian base-images back ?

Thx, best regards, Robert

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the mysql:lts Docker image on an Ubuntu 24.04 host, then compare the same container settings with mysql:8-debian. Done means identifying why MY-013236 occurs and either documenting a supported fix for the LTS image or clarifying whether Debian-based images can be restored.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, mysql
Domain
databases, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.