UNCLASSIFIED - NO CUI

MySQL8 incompatible with RedHat UBI 8.3

Summary

When MySQL is built with RedHat UBI 8.3, the container fails to run. Running with RedHat UBI 8.2 works.

Steps to reproduce

  • docker build --build-arg BASE_TAG=8.3 -t mysql:dev .
  • docker run --rm -it mysql:dev

What is the current bug behavior?

After running, the logs will show: Error: Unknown setting - enforce_for_root

What is the expected correct behavior?

After running, the logs will reach this line: [Entrypoint] GENERATED ROOT PASSWORD: ****

Relevant logs and/or screenshots

[Entrypoint] MySQL Docker Image 8.0.20-1.1.16
[Entrypoint] No password option specified for new database.
[Entrypoint]   A random onetime password will be generated.
[Entrypoint] Initializing database
2021-03-30T20:41:16.351381Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.22) initializing of server in progress as process 16
2021-03-30T20:41:16.356111Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-03-30T20:41:18.134722Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-03-30T20:41:22.226986Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
[Entrypoint] Database initialized
mysqld will log errors to /var/lib/mysql/6ed0d52a9962.err
mysqld is running as pid 61
Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
Error: Unknown setting - enforce_for_root

Possible fixes

Unsure where the issue is, but a clue is that using RHEL UBI 8.2 as a base image does NOT experience the problem.

Definition of Done

  • Bug has been identified and corrected within the container

/cc @ironbank-notifications/bug