Current MySQL image fails to start
Summary
The current/latest image tag version (8.0.34-debian-11-r2) will not start. The last image tag version that works is (8.0.29-debian-10-r37.)
Steps to reproduce
Non-working version:
docker run --name mysql_34 -e MYSQL_ROOT_PASSWORD=password123 registry1.dso.mil/ironbank/bitnami/mysql8:8.0.34-debian-11-r2
Working Version:
docker run --name mysql_34 -e MYSQL_ROOT_PASSWORD=password123 registry1.dso.mil/ironbank/bitnami/mysql8:8.0.29-debian-10-r37
It's also important to note that the Bitnami DockerHub latest version works as well:
docker run --name mysql_dockerhub -e MYSQL_ROOT_PASSWORD=password123 bitnami/mysql:latest
What is the current bug behavior?
The 8.0.34-debian-11-r2 version crashes almost immediately (fractions of a second.) This is the only thing that is logged:
mysql 02:04:28.76
mysql 02:04:28.76 Welcome to the Bitnami mysql container
mysql 02:04:28.76 Subscribe to project updates by watching https://github.com/bitnami/containers
mysql 02:04:28.76 Submit issues and feature requests at https://github.com/bitnami/containers/issues
mysql 02:04:28.76
mysql 02:04:28.77 INFO ==> ** Starting MySQL setup **
mysql 02:04:28.80 INFO ==> Validating settings in MYSQL_*/MARIADB_* env vars
mysql 02:04:28.80 INFO ==> Initializing mysql database
mysql 02:04:28.81 INFO ==> Updating 'my.cnf' with custom configuration
mysql 02:04:28.82 INFO ==> Setting slow_query_log option
mysql 02:04:28.84 INFO ==> Setting long_query_time option
mysql 02:04:28.86 INFO ==> Installing database
What is the expected correct behavior?
The 8.0.29-debian-10-r37 version works, the MySQL instance starts up and I can connect to the database.
Relevant logs and/or screenshots
This is what a working MySQL container should look like:
Possible fixes
I did some basic troubleshooting, and I was able to identify two missing dependencies (there may be more.) The first is glibc
. This issue is rather easy to address by running dnf install -y glibc
.
The second missing dependency is gosu
, this missing dependency is far more difficult to address.
Tasks
-
Bug has been identified and corrected within the container
Please read the Iron Bank Documentation for more info