Skip to content

Docker image for 5.7.37 fails to start #844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fedinskiy opened this issue Apr 21, 2022 · 9 comments
Closed

Docker image for 5.7.37 fails to start #844

fedinskiy opened this issue Apr 21, 2022 · 9 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@fedinskiy
Copy link

If 5.7.37 container started through docker, it fails with ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111).
Docker images for 5.7.36 work flawlessly on the same hardware.

How to reproduce:
Run docker run --name my37 -e MYSQL_ROOT_PASSWORD=my-secret-pw mysql:5.7.37 (It works the same way with -d option)
This works fine: docker run --name my36 -e MYSQL_ROOT_PASSWORD=my-secret-pw mysql:5.7.36

Docker version:

 Version:           20.10.14
 API version:       1.41
 Go version:        go1.16.15
 Git commit:        a224086
 Built:             Thu Mar 24 01:48:41 2022
 OS/Arch:           linux/amd64
 Context:           default

@wglambert
Copy link

I'm not able to reproduce an issue with connecting using the unix socket

$ docker run -d --name my37 -e MYSQL_ROOT_PASSWORD=my-secret-pw mysql:5.7.37
Unable to find image 'mysql:5.7.37' locally
5.7.37: Pulling from library/mysql
4be315f6562f: Pull complete
96e2eb237a1b: Pull complete
8aa3ac85066b: Pull complete
ac7e524f6c89: Pull complete
f6a88631064f: Pull complete
15bb3ec3ff50: Pull complete
ae65dc337dcb: Pull complete
291c7612f7a8: Pull complete
ffdc84226e0b: Pull complete
81340df4a52c: Pull complete
f3ec63f52b87: Pull complete
Digest: sha256:151ecb87a07404f2c2588464e86381bdf74795c6d24090f9c50bc8e947a57797
Status: Downloaded newer image for mysql:5.7.37
b95637a8679f1b877ad4fea10f9c9ce7ec9ef3cfeeed5d702cf67f477c8a6f2f

$ docker exec -it my37 mysql -u root -p -S /var/run/mysqld/mysqld.sock
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.37 MySQL Community Server (GPL)

Copyright (c) 2000, 2022, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
docker logs
$ docker logs my37
2022-04-21 16:29:17+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
2022-04-21 16:29:17+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2022-04-21 16:29:17+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
2022-04-21 16:29:17+00:00 [Note] [Entrypoint]: Initializing database files
2022-04-21T16:29:17.685585Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2022-04-21T16:29:18.033917Z 0 [Warning] InnoDB: New log files created, LSN=45790
2022-04-21T16:29:18.100988Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2022-04-21T16:29:18.158572Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 30e7b4ef-c190-11ec-bfe4-0242ac110002.
2022-04-21T16:29:18.159551Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2022-04-21T16:29:18.847265Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
2022-04-21T16:29:18.847314Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
2022-04-21T16:29:18.848166Z 0 [Warning] CA certificate ca.pem is self signed.
2022-04-21T16:29:18.922430Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2022-04-21 16:29:21+00:00 [Note] [Entrypoint]: Database files initialized
2022-04-21 16:29:21+00:00 [Note] [Entrypoint]: Starting temporary server
2022-04-21 16:29:21+00:00 [Note] [Entrypoint]: Waiting for server startup
2022-04-21T16:29:21.421453Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2022-04-21T16:29:21.428840Z 0 [Note] mysqld (mysqld 5.7.37) starting as process 78 ...
2022-04-21T16:29:21.437852Z 0 [Note] InnoDB: PUNCH HOLE support available
2022-04-21T16:29:21.437896Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2022-04-21T16:29:21.437902Z 0 [Note] InnoDB: Uses event mutexes
2022-04-21T16:29:21.437906Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2022-04-21T16:29:21.437910Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-04-21T16:29:21.437914Z 0 [Note] InnoDB: Using Linux native AIO
2022-04-21T16:29:21.438337Z 0 [Note] InnoDB: Number of pools: 1
2022-04-21T16:29:21.438662Z 0 [Note] InnoDB: Using CPU crc32 instructions
2022-04-21T16:29:21.442470Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2022-04-21T16:29:21.457947Z 0 [Note] InnoDB: Completed initialization of buffer pool
2022-04-21T16:29:21.463805Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2022-04-21T16:29:21.480094Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2022-04-21T16:29:21.496732Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-04-21T16:29:21.496849Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-04-21T16:29:21.542507Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2022-04-21T16:29:21.543381Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2022-04-21T16:29:21.543403Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2022-04-21T16:29:21.543996Z 0 [Note] InnoDB: Waiting for purge to start
2022-04-21T16:29:21.594235Z 0 [Note] InnoDB: 5.7.37 started; log sequence number 2749976
2022-04-21T16:29:21.594777Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-04-21T16:29:21.595115Z 0 [Note] Plugin 'FEDERATED' is disabled.
2022-04-21T16:29:21.597456Z 0 [Note] InnoDB: Buffer pool(s) load completed at 220421 16:29:21
2022-04-21T16:29:21.607832Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2022-04-21T16:29:21.607865Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2022-04-21T16:29:21.607872Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
2022-04-21T16:29:21.607875Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
2022-04-21T16:29:21.608494Z 0 [Warning] CA certificate ca.pem is self signed.
2022-04-21T16:29:21.608537Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2022-04-21T16:29:21.610161Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2022-04-21T16:29:21.619831Z 0 [Note] Event Scheduler: Loaded 0 events
2022-04-21T16:29:21.620293Z 0 [Note] mysqld: ready for connections.
Version: '5.7.37'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
2022-04-21 16:29:22+00:00 [Note] [Entrypoint]: Temporary server started.
Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' 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.

2022-04-21 16:29:23+00:00 [Note] [Entrypoint]: Stopping temporary server
2022-04-21T16:29:23.881404Z 0 [Note] Giving 0 client threads a chance to die gracefully
2022-04-21T16:29:23.881445Z 0 [Note] Shutting down slave threads
2022-04-21T16:29:23.881450Z 0 [Note] Forcefully disconnecting 0 remaining clients
2022-04-21T16:29:23.881460Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2022-04-21T16:29:23.881560Z 0 [Note] Binlog end
2022-04-21T16:29:23.882250Z 0 [Note] Shutting down plugin 'ngram'
2022-04-21T16:29:23.882275Z 0 [Note] Shutting down plugin 'partition'
2022-04-21T16:29:23.882279Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2022-04-21T16:29:23.882282Z 0 [Note] Shutting down plugin 'ARCHIVE'
2022-04-21T16:29:23.882284Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2022-04-21T16:29:23.882357Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2022-04-21T16:29:23.882361Z 0 [Note] Shutting down plugin 'MyISAM'
2022-04-21T16:29:23.882375Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2022-04-21T16:29:23.882389Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2022-04-21T16:29:23.882393Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2022-04-21T16:29:23.882397Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2022-04-21T16:29:23.882401Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2022-04-21T16:29:23.882405Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2022-04-21T16:29:23.882408Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2022-04-21T16:29:23.882448Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2022-04-21T16:29:23.882451Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2022-04-21T16:29:23.882453Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2022-04-21T16:29:23.882455Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2022-04-21T16:29:23.882457Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2022-04-21T16:29:23.882459Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2022-04-21T16:29:23.882462Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2022-04-21T16:29:23.882464Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2022-04-21T16:29:23.882466Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2022-04-21T16:29:23.882468Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2022-04-21T16:29:23.882470Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2022-04-21T16:29:23.882472Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2022-04-21T16:29:23.882474Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2022-04-21T16:29:23.882476Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2022-04-21T16:29:23.882478Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2022-04-21T16:29:23.882480Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2022-04-21T16:29:23.882483Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2022-04-21T16:29:23.882485Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2022-04-21T16:29:23.882486Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2022-04-21T16:29:23.882488Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2022-04-21T16:29:23.882491Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2022-04-21T16:29:23.882493Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2022-04-21T16:29:23.882495Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2022-04-21T16:29:23.882497Z 0 [Note] Shutting down plugin 'InnoDB'
2022-04-21T16:29:23.882622Z 0 [Note] InnoDB: FTS optimize thread exiting.
2022-04-21T16:29:23.882794Z 0 [Note] InnoDB: Starting shutdown...
2022-04-21T16:29:23.983316Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2022-04-21T16:29:23.983704Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 220421 16:29:23
2022-04-21T16:29:25.506651Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12659904
2022-04-21T16:29:25.509059Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-04-21T16:29:25.509101Z 0 [Note] Shutting down plugin 'MEMORY'
2022-04-21T16:29:25.509107Z 0 [Note] Shutting down plugin 'CSV'
2022-04-21T16:29:25.509111Z 0 [Note] Shutting down plugin 'sha256_password'
2022-04-21T16:29:25.509113Z 0 [Note] Shutting down plugin 'mysql_native_password'
2022-04-21T16:29:25.509297Z 0 [Note] Shutting down plugin 'binlog'
2022-04-21T16:29:25.510802Z 0 [Note] mysqld: Shutdown complete

2022-04-21 16:29:25+00:00 [Note] [Entrypoint]: Temporary server stopped

2022-04-21 16:29:25+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.

2022-04-21T16:29:26.131534Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2022-04-21T16:29:26.134442Z 0 [Note] mysqld (mysqld 5.7.37) starting as process 1 ...
2022-04-21T16:29:26.138124Z 0 [Note] InnoDB: PUNCH HOLE support available
2022-04-21T16:29:26.138158Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2022-04-21T16:29:26.138161Z 0 [Note] InnoDB: Uses event mutexes
2022-04-21T16:29:26.138167Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2022-04-21T16:29:26.138170Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-04-21T16:29:26.138173Z 0 [Note] InnoDB: Using Linux native AIO
2022-04-21T16:29:26.138492Z 0 [Note] InnoDB: Number of pools: 1
2022-04-21T16:29:26.138741Z 0 [Note] InnoDB: Using CPU crc32 instructions
2022-04-21T16:29:26.141504Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2022-04-21T16:29:26.152478Z 0 [Note] InnoDB: Completed initialization of buffer pool
2022-04-21T16:29:26.156860Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2022-04-21T16:29:26.169324Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2022-04-21T16:29:26.179414Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-04-21T16:29:26.179499Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-04-21T16:29:26.215725Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2022-04-21T16:29:26.216910Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2022-04-21T16:29:26.216936Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2022-04-21T16:29:26.217836Z 0 [Note] InnoDB: 5.7.37 started; log sequence number 12659904
2022-04-21T16:29:26.218206Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-04-21T16:29:26.218254Z 0 [Note] Plugin 'FEDERATED' is disabled.
2022-04-21T16:29:26.224451Z 0 [Note] InnoDB: Buffer pool(s) load completed at 220421 16:29:26
2022-04-21T16:29:26.227977Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2022-04-21T16:29:26.228011Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2022-04-21T16:29:26.228016Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
2022-04-21T16:29:26.228018Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
2022-04-21T16:29:26.228675Z 0 [Warning] CA certificate ca.pem is self signed.
2022-04-21T16:29:26.228718Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2022-04-21T16:29:26.229719Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2022-04-21T16:29:26.229830Z 0 [Note] IPv6 is available.
2022-04-21T16:29:26.229995Z 0 [Note]   - '::' resolves to '::';
2022-04-21T16:29:26.230110Z 0 [Note] Server socket created on IP: '::'.
2022-04-21T16:29:26.231215Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2022-04-21T16:29:26.242339Z 0 [Note] Event Scheduler: Loaded 0 events
2022-04-21T16:29:26.242861Z 0 [Note] mysqld: ready for connections.
Version: '5.7.37'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)

@soullivaneuh
Copy link

@tianon May we consider re-opening this issue for further investigations?

Many similar was opened but this one brings the simplest way to reproduce. I got to the exact same situation of @fedinskiy, fixed by using 5.7.36:

# does not work
docker run --rm -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql:5.7.42
# works
docker run --rm -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql:5.7.36

Please also note if we do the same using docker compose, the error occurs at the first docker compose up but disappear if you do it again with the container already started. However, the expected init script is skipped.

Here is my docker info:

Details

❯ docker info                                                              
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  0.10.4
    Path:     /usr/lib/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  2.17.2
    Path:     /usr/lib/docker/cli-plugins/docker-compose

Server:
 Containers: 4
  Running: 1
  Paused: 0
  Stopped: 3
 Images: 34
 Server Version: 23.0.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1fbd70374134b891f97ce19c70b6e50c7b9f4e0d.m
 runc version: 
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 5.15.105-1-MANJARO
 Operating System: Manjaro Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 31.07GiB
 Name: sweetlap
 ID: XKPJ:IMQ6:APWA:CDL4:KOPC:4HJB:2JXN:Z6SS:55I2:5Z4V:TSLD:KRYA
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Experimental: false
 Insecure Registries:
  registry.int.nexylan.net
  127.0.0.0/8
 Registry Mirrors:
  https://mirror.gcr.io/
 Live Restore Enabled: false

And my OS details:

Details

❯ cat /etc/os-release
NAME="Manjaro Linux"
PRETTY_NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://forum.manjaro.org/"
BUG_REPORT_URL="https://docs.manjaro.org/reporting-bugs/"
PRIVACY_POLICY_URL="https://manjaro.org/privacy-policy/"
LOGO=manjarolinux
❯ uname -a
Linux sweetlap 5.15.105-1-MANJARO #1 SMP PREEMPT Fri Mar 31 05:22:54 UTC 2023 x86_64 GNU/Linux

Please ask if you need another details. It looks indeed the bug appears only on some operating system conditions.

Thanks!

@tianon
Copy link
Member

tianon commented Apr 26, 2023

I'm glad you've narrowed it down! I would suggest filing an issue with upstream MySQL with details -- even better if you can test it without Docker involved at all (just installing MySQL 5.7.36 and then updating it to 5.7.42 and verifying that it still breaks in the same way).

We're a pretty faithful packaging of Oracle's own binaries (we don't build MySQL from source or anything esoteric like that), and our configuration changes are fairly minor, so any issue of this sort is very unlikely to be specific to our image, and is much more likely to be something in MySQL itself or in the environment/setup.

@yosifkit
Copy link
Member

@soullivaneuh, the two images: mysql:5.7.42 and mysql:5.7.36 are based on different Linux distributions, Oracle Linux and Debian, respectively (#867 and docker-library/official-images#12743). I don't know if somehow that is the cause of the issue you are running into. We tried to make them as interoperable as possible, but you can still choose the -debian tag to get the Debian based version. Does mysql:5.7.37 (Debian default) also fail? Does any of mysql:5.7.38-debian through mysql:5.7.42-debian work? If none of the later Debian images work, then I am still unsure where the issue could be (since the difference between mysql:5.7.37 and mysql:5.7.36 is just the version bump).

Note: that could not be the case for the original issue since we didn't change the default until mysql:5.7.38

@ionesculiviucristian
Copy link

I can also confirm the problem.
Using this docker compose file:

  mysql_legacy:
    # https://dev.mysql.com/doc/refman/5.7/en/charset-server.html
    command:
      - "--character-set-server=utf8mb4"
      - "--collation-server=utf8mb4_unicode_ci"
    container_name: "${COMPOSE_PROJECT_NAME}-mysql_legacy"
    # https://dev.mysql.com/doc/refman/5.7/en/environment-variables.html
    environment:
      MYSQLD_EXPORTER_PASSWORD: "${MYSQLD_EXPORTER_PASSWORD?:err}"
      MYSQLD_EXPORTER_USER: "${MYSQLD_EXPORTER_USER?:err}"
      MYSQL_DATABASE: null
      MYSQL_PASSWORD: null
      MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD?:err}"
      MYSQL_USER: null
      TZ: "${TZ?:err}"
    healthcheck:
      interval: "5s"
      retries: 3
      start_period: "5s"
      test: '/usr/bin/mysql --user=root --password=${MYSQL_ROOT_PASSWORD} --execute "SHOW DATABASES;"'
      timeout: "5s"
    image: "mysql:5.7.36"
    labels:
      com.centurylinklabs.watchtower.enable: true
    networks:
      - "default"
      - "dp-mysql"
      - "dp-prometheus"
    ports:
      - "${MYSQL_LEGACY_PORT}:3306"
    restart: "unless-stopped"
    volumes:
      # - "./data/mysql_legacy:/var/lib/mysql"
      - "./services/databases/mysql/initdb-legacy:/docker-entrypoint-initdb.d"

it outputs:

dp-mysql_legacy  | 2024-10-12 17:02:46+03:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.36-1debian10 started.
dp-mysql_legacy  | 2024-10-12 17:02:51+03:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
dp-mysql_legacy  | 2024-10-12 17:02:51+03:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.36-1debian10 started.
dp-mysql_legacy  | 2024-10-12 17:02:56+03:00 [Note] [Entrypoint]: Initializing database files
dp-mysql_legacy  | 2024-10-12T14:02:58.271961Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-12T14:02:58.406190Z 0 [Warning] InnoDB: New log files created, LSN=45790
dp-mysql_legacy  | 2024-10-12T14:02:58.435610Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
dp-mysql_legacy  | 2024-10-12T14:02:58.446276Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: afa1ad78-88a2-11ef-9bd6-0242ac150002.
dp-mysql_legacy  | 2024-10-12T14:02:58.448241Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
dp-mysql_legacy  | 2024-10-12T14:02:58.684967Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:02:58.684973Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:02:58.685203Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-12T14:02:58.809021Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
dp-mysql_legacy  | 2024-10-12 17:03:01+03:00 [Note] [Entrypoint]: Database files initialized
dp-mysql_legacy  | 2024-10-12 17:03:01+03:00 [Note] [Entrypoint]: Starting temporary server
dp-mysql_legacy  | 2024-10-12 17:03:01+03:00 [Note] [Entrypoint]: Waiting for server startup
dp-mysql_legacy  | 2024-10-12T14:03:03.202864Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-12T14:03:03.204077Z 0 [Note] mysqld (mysqld 5.7.36) starting as process 90 ...
dp-mysql_legacy  | 2024-10-12T14:03:03.205684Z 0 [Note] InnoDB: PUNCH HOLE support available
dp-mysql_legacy  | 2024-10-12T14:03:03.205692Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
dp-mysql_legacy  | 2024-10-12T14:03:03.205694Z 0 [Note] InnoDB: Uses event mutexes
dp-mysql_legacy  | 2024-10-12T14:03:03.205696Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
dp-mysql_legacy  | 2024-10-12T14:03:03.205697Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
dp-mysql_legacy  | 2024-10-12T14:03:03.205698Z 0 [Note] InnoDB: Using Linux native AIO
dp-mysql_legacy  | 2024-10-12T14:03:03.205836Z 0 [Note] InnoDB: Number of pools: 1
dp-mysql_legacy  | 2024-10-12T14:03:03.205900Z 0 [Note] InnoDB: Using CPU crc32 instructions
dp-mysql_legacy  | 2024-10-12T14:03:03.207048Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
dp-mysql_legacy  | 2024-10-12T14:03:03.211100Z 0 [Note] InnoDB: Completed initialization of buffer pool
dp-mysql_legacy  | 2024-10-12T14:03:03.212530Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
dp-mysql_legacy  | 2024-10-12T14:03:03.223921Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
dp-mysql_legacy  | 2024-10-12T14:03:03.230375Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
dp-mysql_legacy  | 2024-10-12T14:03:03.230402Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
dp-mysql_legacy  | 2024-10-12T14:03:03.239344Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
dp-mysql_legacy  | 2024-10-12T14:03:03.239657Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:03:03.239664Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:03:03.240119Z 0 [Note] InnoDB: 5.7.36 started; log sequence number 2749723
dp-mysql_legacy  | 2024-10-12T14:03:03.240237Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
dp-mysql_legacy  | 2024-10-12T14:03:03.240520Z 0 [Note] Plugin 'FEDERATED' is disabled.
dp-mysql_legacy  | 2024-10-12T14:03:03.241180Z 0 [Note] InnoDB: Buffer pool(s) load completed at 241012 17:03:03
dp-mysql_legacy  | 2024-10-12T14:03:03.244600Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
dp-mysql_legacy  | 2024-10-12T14:03:03.244607Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:03:03.244609Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:03:03.244611Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:03:03.244933Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-12T14:03:03.244954Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:03:03.247219Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
dp-mysql_legacy  | 2024-10-12T14:03:03.252389Z 0 [Note] Event Scheduler: Loaded 0 events
dp-mysql_legacy  | 2024-10-12T14:03:03.252542Z 0 [Note] mysqld: ready for connections.
dp-mysql_legacy  | Version: '5.7.36'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
dp-mysql_legacy  | 2024-10-12 17:03:03+03:00 [Note] [Entrypoint]: Temporary server started.
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
dp-mysql_legacy  | 2024-10-12 17:03:04+03:00 [Note] [Entrypoint]: Creating database test
dp-mysql_legacy  | 2024-10-12 17:03:04+03:00 [Note] [Entrypoint]: Creating user user
dp-mysql_legacy  | 2024-10-12 17:03:04+03:00 [Note] [Entrypoint]: Giving user user access to schema test
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-12 17:03:04+03:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/create_mysqld_exporter_user.sh
dp-mysql_legacy  | mysql: [Warning] Using a password on the command line interface can be insecure.
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-12 17:03:04+03:00 [Note] [Entrypoint]: Stopping temporary server
dp-mysql_legacy  | 2024-10-12T14:03:04.383521Z 0 [Note] Giving 0 client threads a chance to die gracefully
dp-mysql_legacy  | 2024-10-12T14:03:04.383534Z 0 [Note] Shutting down slave threads
dp-mysql_legacy  | 2024-10-12T14:03:04.383537Z 0 [Note] Forcefully disconnecting 0 remaining clients
dp-mysql_legacy  | 2024-10-12T14:03:04.383540Z 0 [Note] Event Scheduler: Purging the queue. 0 events
dp-mysql_legacy  | 2024-10-12T14:03:04.383564Z 0 [Note] Binlog end
dp-mysql_legacy  | 2024-10-12T14:03:04.383907Z 0 [Note] Shutting down plugin 'ngram'
dp-mysql_legacy  | 2024-10-12T14:03:04.383912Z 0 [Note] Shutting down plugin 'partition'
dp-mysql_legacy  | 2024-10-12T14:03:04.383914Z 0 [Note] Shutting down plugin 'BLACKHOLE'
dp-mysql_legacy  | 2024-10-12T14:03:04.383916Z 0 [Note] Shutting down plugin 'ARCHIVE'
dp-mysql_legacy  | 2024-10-12T14:03:04.383918Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
dp-mysql_legacy  | 2024-10-12T14:03:04.383939Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
dp-mysql_legacy  | 2024-10-12T14:03:04.383941Z 0 [Note] Shutting down plugin 'MyISAM'
dp-mysql_legacy  | 2024-10-12T14:03:04.383945Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
dp-mysql_legacy  | 2024-10-12T14:03:04.383947Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
dp-mysql_legacy  | 2024-10-12T14:03:04.383948Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
dp-mysql_legacy  | 2024-10-12T14:03:04.383950Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383951Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
dp-mysql_legacy  | 2024-10-12T14:03:04.383952Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383954Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383955Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
dp-mysql_legacy  | 2024-10-12T14:03:04.383956Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383957Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
dp-mysql_legacy  | 2024-10-12T14:03:04.383959Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
dp-mysql_legacy  | 2024-10-12T14:03:04.383960Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
dp-mysql_legacy  | 2024-10-12T14:03:04.383961Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
dp-mysql_legacy  | 2024-10-12T14:03:04.383963Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
dp-mysql_legacy  | 2024-10-12T14:03:04.383964Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
dp-mysql_legacy  | 2024-10-12T14:03:04.383965Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
dp-mysql_legacy  | 2024-10-12T14:03:04.383966Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383968Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
dp-mysql_legacy  | 2024-10-12T14:03:04.383969Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383970Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
dp-mysql_legacy  | 2024-10-12T14:03:04.383972Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
dp-mysql_legacy  | 2024-10-12T14:03:04.383973Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
dp-mysql_legacy  | 2024-10-12T14:03:04.383974Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
dp-mysql_legacy  | 2024-10-12T14:03:04.383975Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
dp-mysql_legacy  | 2024-10-12T14:03:04.383977Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
dp-mysql_legacy  | 2024-10-12T14:03:04.383978Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
dp-mysql_legacy  | 2024-10-12T14:03:04.383979Z 0 [Note] Shutting down plugin 'INNODB_CMP'
dp-mysql_legacy  | 2024-10-12T14:03:04.383980Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383982Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383983Z 0 [Note] Shutting down plugin 'INNODB_TRX'
dp-mysql_legacy  | 2024-10-12T14:03:04.383985Z 0 [Note] Shutting down plugin 'InnoDB'
dp-mysql_legacy  | 2024-10-12T14:03:04.384009Z 0 [Note] InnoDB: FTS optimize thread exiting.
dp-mysql_legacy  | 2024-10-12T14:03:04.384045Z 0 [Note] InnoDB: Starting shutdown...
dp-mysql_legacy  | 2024-10-12T14:03:04.484393Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
dp-mysql_legacy  | 2024-10-12T14:03:04.484571Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 241012 17:03:04
dp-mysql_legacy  | 2024-10-12T14:03:06.197960Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12659811
dp-mysql_legacy  | 2024-10-12T14:03:06.200186Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
dp-mysql_legacy  | 2024-10-12T14:03:06.200203Z 0 [Note] Shutting down plugin 'MEMORY'
dp-mysql_legacy  | 2024-10-12T14:03:06.200210Z 0 [Note] Shutting down plugin 'CSV'
dp-mysql_legacy  | 2024-10-12T14:03:06.200216Z 0 [Note] Shutting down plugin 'sha256_password'
dp-mysql_legacy  | 2024-10-12T14:03:06.200219Z 0 [Note] Shutting down plugin 'mysql_native_password'
dp-mysql_legacy  | 2024-10-12T14:03:06.200355Z 0 [Note] Shutting down plugin 'binlog'
dp-mysql_legacy  | 2024-10-12T14:03:06.260748Z 0 [Note] mysqld: Shutdown complete
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-12 17:03:06+03:00 [Note] [Entrypoint]: Temporary server stopped
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-12 17:03:06+03:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-12T14:03:08.113009Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-12T14:03:08.113720Z 0 [Note] mysqld (mysqld 5.7.36) starting as process 1 ...
dp-mysql_legacy  | 2024-10-12T14:03:08.115398Z 0 [Note] InnoDB: PUNCH HOLE support available
dp-mysql_legacy  | 2024-10-12T14:03:08.115405Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
dp-mysql_legacy  | 2024-10-12T14:03:08.115407Z 0 [Note] InnoDB: Uses event mutexes
dp-mysql_legacy  | 2024-10-12T14:03:08.115409Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
dp-mysql_legacy  | 2024-10-12T14:03:08.115410Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
dp-mysql_legacy  | 2024-10-12T14:03:08.115412Z 0 [Note] InnoDB: Using Linux native AIO
dp-mysql_legacy  | 2024-10-12T14:03:08.115603Z 0 [Note] InnoDB: Number of pools: 1
dp-mysql_legacy  | 2024-10-12T14:03:08.115676Z 0 [Note] InnoDB: Using CPU crc32 instructions
dp-mysql_legacy  | 2024-10-12T14:03:08.116875Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
dp-mysql_legacy  | 2024-10-12T14:03:08.120992Z 0 [Note] InnoDB: Completed initialization of buffer pool
dp-mysql_legacy  | 2024-10-12T14:03:08.122466Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
dp-mysql_legacy  | 2024-10-12T14:03:08.133879Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
dp-mysql_legacy  | 2024-10-12T14:03:08.140677Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
dp-mysql_legacy  | 2024-10-12T14:03:08.140708Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
dp-mysql_legacy  | 2024-10-12T14:03:08.149540Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
dp-mysql_legacy  | 2024-10-12T14:03:08.149846Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:03:08.149851Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:03:08.150281Z 0 [Note] InnoDB: 5.7.36 started; log sequence number 12659811
dp-mysql_legacy  | 2024-10-12T14:03:08.150364Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
dp-mysql_legacy  | 2024-10-12T14:03:08.150639Z 0 [Note] Plugin 'FEDERATED' is disabled.
dp-mysql_legacy  | 2024-10-12T14:03:08.151813Z 0 [Note] InnoDB: Buffer pool(s) load completed at 241012 17:03:08
dp-mysql_legacy  | 2024-10-12T14:03:08.154000Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
dp-mysql_legacy  | 2024-10-12T14:03:08.154008Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:03:08.154011Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:03:08.154012Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:03:08.154312Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-12T14:03:08.154326Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:03:08.154678Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
dp-mysql_legacy  | 2024-10-12T14:03:08.154698Z 0 [Note] IPv6 is available.
dp-mysql_legacy  | 2024-10-12T14:03:08.154705Z 0 [Note]   - '::' resolves to '::';
dp-mysql_legacy  | 2024-10-12T14:03:08.154715Z 0 [Note] Server socket created on IP: '::'.
dp-mysql_legacy  | 2024-10-12T14:03:08.156896Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
dp-mysql_legacy  | 2024-10-12T14:03:08.161314Z 0 [Note] Event Scheduler: Loaded 0 events
dp-mysql_legacy  | 2024-10-12T14:03:08.161457Z 0 [Note] mysqld: ready for connections.
dp-mysql_legacy  | Version: '5.7.36'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
^Ccanceled
[liviu@archlinux docker-playground]$ dcl
dp-mysql_legacy  | 2024-10-12 17:02:46+03:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.36-1debian10 started.
dp-mysql_legacy  | 2024-10-12 17:02:51+03:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
dp-mysql_legacy  | 2024-10-12 17:02:51+03:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.36-1debian10 started.
dp-mysql_legacy  | 2024-10-12 17:02:56+03:00 [Note] [Entrypoint]: Initializing database files
dp-mysql_legacy  | 2024-10-12T14:02:58.271961Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-12T14:02:58.406190Z 0 [Warning] InnoDB: New log files created, LSN=45790
dp-mysql_legacy  | 2024-10-12T14:02:58.435610Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
dp-mysql_legacy  | 2024-10-12T14:02:58.446276Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: afa1ad78-88a2-11ef-9bd6-0242ac150002.
dp-mysql_legacy  | 2024-10-12T14:02:58.448241Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
dp-mysql_legacy  | 2024-10-12T14:02:58.684967Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:02:58.684973Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:02:58.685203Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-12T14:02:58.809021Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
dp-mysql_legacy  | 2024-10-12 17:03:01+03:00 [Note] [Entrypoint]: Database files initialized
dp-mysql_legacy  | 2024-10-12 17:03:01+03:00 [Note] [Entrypoint]: Starting temporary server
dp-mysql_legacy  | 2024-10-12 17:03:01+03:00 [Note] [Entrypoint]: Waiting for server startup
dp-mysql_legacy  | 2024-10-12T14:03:03.202864Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-12T14:03:03.204077Z 0 [Note] mysqld (mysqld 5.7.36) starting as process 90 ...
dp-mysql_legacy  | 2024-10-12T14:03:03.205684Z 0 [Note] InnoDB: PUNCH HOLE support available
dp-mysql_legacy  | 2024-10-12T14:03:03.205692Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
dp-mysql_legacy  | 2024-10-12T14:03:03.205694Z 0 [Note] InnoDB: Uses event mutexes
dp-mysql_legacy  | 2024-10-12T14:03:03.205696Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
dp-mysql_legacy  | 2024-10-12T14:03:03.205697Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
dp-mysql_legacy  | 2024-10-12T14:03:03.205698Z 0 [Note] InnoDB: Using Linux native AIO
dp-mysql_legacy  | 2024-10-12T14:03:03.205836Z 0 [Note] InnoDB: Number of pools: 1
dp-mysql_legacy  | 2024-10-12T14:03:03.205900Z 0 [Note] InnoDB: Using CPU crc32 instructions
dp-mysql_legacy  | 2024-10-12T14:03:03.207048Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
dp-mysql_legacy  | 2024-10-12T14:03:03.211100Z 0 [Note] InnoDB: Completed initialization of buffer pool
dp-mysql_legacy  | 2024-10-12T14:03:03.212530Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
dp-mysql_legacy  | 2024-10-12T14:03:03.223921Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
dp-mysql_legacy  | 2024-10-12T14:03:03.230375Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
dp-mysql_legacy  | 2024-10-12T14:03:03.230402Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
dp-mysql_legacy  | 2024-10-12T14:03:03.239344Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
dp-mysql_legacy  | 2024-10-12T14:03:03.239657Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:03:03.239664Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:03:03.240119Z 0 [Note] InnoDB: 5.7.36 started; log sequence number 2749723
dp-mysql_legacy  | 2024-10-12T14:03:03.240237Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
dp-mysql_legacy  | 2024-10-12T14:03:03.240520Z 0 [Note] Plugin 'FEDERATED' is disabled.
dp-mysql_legacy  | 2024-10-12T14:03:03.241180Z 0 [Note] InnoDB: Buffer pool(s) load completed at 241012 17:03:03
dp-mysql_legacy  | 2024-10-12T14:03:03.244600Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
dp-mysql_legacy  | 2024-10-12T14:03:03.244607Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:03:03.244609Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:03:03.244611Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:03:03.244933Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-12T14:03:03.244954Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:03:03.247219Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
dp-mysql_legacy  | 2024-10-12T14:03:03.252389Z 0 [Note] Event Scheduler: Loaded 0 events
dp-mysql_legacy  | 2024-10-12T14:03:03.252542Z 0 [Note] mysqld: ready for connections.
dp-mysql_legacy  | Version: '5.7.36'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
dp-mysql_legacy  | 2024-10-12 17:03:03+03:00 [Note] [Entrypoint]: Temporary server started.
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
dp-mysql_legacy  | 2024-10-12 17:03:04+03:00 [Note] [Entrypoint]: Creating database test
dp-mysql_legacy  | 2024-10-12 17:03:04+03:00 [Note] [Entrypoint]: Creating user user
dp-mysql_legacy  | 2024-10-12 17:03:04+03:00 [Note] [Entrypoint]: Giving user user access to schema test
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-12 17:03:04+03:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/create_mysqld_exporter_user.sh
dp-mysql_legacy  | mysql: [Warning] Using a password on the command line interface can be insecure.
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-12 17:03:04+03:00 [Note] [Entrypoint]: Stopping temporary server
dp-mysql_legacy  | 2024-10-12T14:03:04.383521Z 0 [Note] Giving 0 client threads a chance to die gracefully
dp-mysql_legacy  | 2024-10-12T14:03:04.383534Z 0 [Note] Shutting down slave threads
dp-mysql_legacy  | 2024-10-12T14:03:04.383537Z 0 [Note] Forcefully disconnecting 0 remaining clients
dp-mysql_legacy  | 2024-10-12T14:03:04.383540Z 0 [Note] Event Scheduler: Purging the queue. 0 events
dp-mysql_legacy  | 2024-10-12T14:03:04.383564Z 0 [Note] Binlog end
dp-mysql_legacy  | 2024-10-12T14:03:04.383907Z 0 [Note] Shutting down plugin 'ngram'
dp-mysql_legacy  | 2024-10-12T14:03:04.383912Z 0 [Note] Shutting down plugin 'partition'
dp-mysql_legacy  | 2024-10-12T14:03:04.383914Z 0 [Note] Shutting down plugin 'BLACKHOLE'
dp-mysql_legacy  | 2024-10-12T14:03:04.383916Z 0 [Note] Shutting down plugin 'ARCHIVE'
dp-mysql_legacy  | 2024-10-12T14:03:04.383918Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
dp-mysql_legacy  | 2024-10-12T14:03:04.383939Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
dp-mysql_legacy  | 2024-10-12T14:03:04.383941Z 0 [Note] Shutting down plugin 'MyISAM'
dp-mysql_legacy  | 2024-10-12T14:03:04.383945Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
dp-mysql_legacy  | 2024-10-12T14:03:04.383947Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
dp-mysql_legacy  | 2024-10-12T14:03:04.383948Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
dp-mysql_legacy  | 2024-10-12T14:03:04.383950Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383951Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
dp-mysql_legacy  | 2024-10-12T14:03:04.383952Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383954Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383955Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
dp-mysql_legacy  | 2024-10-12T14:03:04.383956Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383957Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
dp-mysql_legacy  | 2024-10-12T14:03:04.383959Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
dp-mysql_legacy  | 2024-10-12T14:03:04.383960Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
dp-mysql_legacy  | 2024-10-12T14:03:04.383961Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
dp-mysql_legacy  | 2024-10-12T14:03:04.383963Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
dp-mysql_legacy  | 2024-10-12T14:03:04.383964Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
dp-mysql_legacy  | 2024-10-12T14:03:04.383965Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
dp-mysql_legacy  | 2024-10-12T14:03:04.383966Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383968Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
dp-mysql_legacy  | 2024-10-12T14:03:04.383969Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383970Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
dp-mysql_legacy  | 2024-10-12T14:03:04.383972Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
dp-mysql_legacy  | 2024-10-12T14:03:04.383973Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
dp-mysql_legacy  | 2024-10-12T14:03:04.383974Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
dp-mysql_legacy  | 2024-10-12T14:03:04.383975Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
dp-mysql_legacy  | 2024-10-12T14:03:04.383977Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
dp-mysql_legacy  | 2024-10-12T14:03:04.383978Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
dp-mysql_legacy  | 2024-10-12T14:03:04.383979Z 0 [Note] Shutting down plugin 'INNODB_CMP'
dp-mysql_legacy  | 2024-10-12T14:03:04.383980Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383982Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
dp-mysql_legacy  | 2024-10-12T14:03:04.383983Z 0 [Note] Shutting down plugin 'INNODB_TRX'
dp-mysql_legacy  | 2024-10-12T14:03:04.383985Z 0 [Note] Shutting down plugin 'InnoDB'
dp-mysql_legacy  | 2024-10-12T14:03:04.384009Z 0 [Note] InnoDB: FTS optimize thread exiting.
dp-mysql_legacy  | 2024-10-12T14:03:04.384045Z 0 [Note] InnoDB: Starting shutdown...
dp-mysql_legacy  | 2024-10-12T14:03:04.484393Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
dp-mysql_legacy  | 2024-10-12T14:03:04.484571Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 241012 17:03:04
dp-mysql_legacy  | 2024-10-12T14:03:06.197960Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12659811
dp-mysql_legacy  | 2024-10-12T14:03:06.200186Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
dp-mysql_legacy  | 2024-10-12T14:03:06.200203Z 0 [Note] Shutting down plugin 'MEMORY'
dp-mysql_legacy  | 2024-10-12T14:03:06.200210Z 0 [Note] Shutting down plugin 'CSV'
dp-mysql_legacy  | 2024-10-12T14:03:06.200216Z 0 [Note] Shutting down plugin 'sha256_password'
dp-mysql_legacy  | 2024-10-12T14:03:06.200219Z 0 [Note] Shutting down plugin 'mysql_native_password'
dp-mysql_legacy  | 2024-10-12T14:03:06.200355Z 0 [Note] Shutting down plugin 'binlog'
dp-mysql_legacy  | 2024-10-12T14:03:06.260748Z 0 [Note] mysqld: Shutdown complete
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-12 17:03:06+03:00 [Note] [Entrypoint]: Temporary server stopped
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-12 17:03:06+03:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-12T14:03:08.113009Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-12T14:03:08.113720Z 0 [Note] mysqld (mysqld 5.7.36) starting as process 1 ...
dp-mysql_legacy  | 2024-10-12T14:03:08.115398Z 0 [Note] InnoDB: PUNCH HOLE support available
dp-mysql_legacy  | 2024-10-12T14:03:08.115405Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
dp-mysql_legacy  | 2024-10-12T14:03:08.115407Z 0 [Note] InnoDB: Uses event mutexes
dp-mysql_legacy  | 2024-10-12T14:03:08.115409Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
dp-mysql_legacy  | 2024-10-12T14:03:08.115410Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
dp-mysql_legacy  | 2024-10-12T14:03:08.115412Z 0 [Note] InnoDB: Using Linux native AIO
dp-mysql_legacy  | 2024-10-12T14:03:08.115603Z 0 [Note] InnoDB: Number of pools: 1
dp-mysql_legacy  | 2024-10-12T14:03:08.115676Z 0 [Note] InnoDB: Using CPU crc32 instructions
dp-mysql_legacy  | 2024-10-12T14:03:08.116875Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
dp-mysql_legacy  | 2024-10-12T14:03:08.120992Z 0 [Note] InnoDB: Completed initialization of buffer pool
dp-mysql_legacy  | 2024-10-12T14:03:08.122466Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
dp-mysql_legacy  | 2024-10-12T14:03:08.133879Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
dp-mysql_legacy  | 2024-10-12T14:03:08.140677Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
dp-mysql_legacy  | 2024-10-12T14:03:08.140708Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
dp-mysql_legacy  | 2024-10-12T14:03:08.149540Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
dp-mysql_legacy  | 2024-10-12T14:03:08.149846Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:03:08.149851Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:03:08.150281Z 0 [Note] InnoDB: 5.7.36 started; log sequence number 12659811
dp-mysql_legacy  | 2024-10-12T14:03:08.150364Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
dp-mysql_legacy  | 2024-10-12T14:03:08.150639Z 0 [Note] Plugin 'FEDERATED' is disabled.
dp-mysql_legacy  | 2024-10-12T14:03:08.151813Z 0 [Note] InnoDB: Buffer pool(s) load completed at 241012 17:03:08
dp-mysql_legacy  | 2024-10-12T14:03:08.154000Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
dp-mysql_legacy  | 2024-10-12T14:03:08.154008Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:03:08.154011Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:03:08.154012Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:03:08.154312Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-12T14:03:08.154326Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:03:08.154678Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
dp-mysql_legacy  | 2024-10-12T14:03:08.154698Z 0 [Note] IPv6 is available.
dp-mysql_legacy  | 2024-10-12T14:03:08.154705Z 0 [Note]   - '::' resolves to '::';
dp-mysql_legacy  | 2024-10-12T14:03:08.154715Z 0 [Note] Server socket created on IP: '::'.
dp-mysql_legacy  | 2024-10-12T14:03:08.156896Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
dp-mysql_legacy  | 2024-10-12T14:03:08.161314Z 0 [Note] Event Scheduler: Loaded 0 events
dp-mysql_legacy  | 2024-10-12T14:03:08.161457Z 0 [Note] mysqld: ready for connections.
dp-mysql_legacy  | Version: '5.7.36'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)

but with 5.7.44 and 5.7.37 I get:

dp-mysql_legacy  | 2024-10-12 17:08:07+03:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
dp-mysql_legacy  | 2024-10-12 17:08:11+03:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
dp-mysql_legacy  | 2024-10-12 17:08:12+03:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
dp-mysql_legacy  | 2024-10-12 17:08:16+03:00 [Note] [Entrypoint]: Initializing database files
dp-mysql_legacy  | 2024-10-12T14:08:18.447294Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-12T14:08:18.571440Z 0 [Warning] InnoDB: New log files created, LSN=45790
dp-mysql_legacy  | 2024-10-12T14:08:18.595873Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
dp-mysql_legacy  | 2024-10-12T14:08:18.606741Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 6e764997-88a3-11ef-b9bf-0242ac160002.
dp-mysql_legacy  | 2024-10-12T14:08:18.608750Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
dp-mysql_legacy  | 2024-10-12T14:08:18.999058Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:08:18.999067Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:08:18.999293Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-12T14:08:19.018559Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
dp-mysql_legacy  | 2024-10-12 17:08:21+03:00 [Note] [Entrypoint]: Database files initialized
dp-mysql_legacy  | 2024-10-12 17:08:21+03:00 [Note] [Entrypoint]: Starting temporary server
dp-mysql_legacy  | 2024-10-12 17:08:21+03:00 [Note] [Entrypoint]: Waiting for server startup
dp-mysql_legacy  | 2024-10-12T14:08:23.354674Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-12T14:08:23.356026Z 0 [Note] mysqld (mysqld 5.7.37) starting as process 91 ...
dp-mysql_legacy  | 2024-10-12T14:08:23.357706Z 0 [Note] InnoDB: PUNCH HOLE support available
dp-mysql_legacy  | 2024-10-12T14:08:23.357713Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
dp-mysql_legacy  | 2024-10-12T14:08:23.357715Z 0 [Note] InnoDB: Uses event mutexes
dp-mysql_legacy  | 2024-10-12T14:08:23.357717Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
dp-mysql_legacy  | 2024-10-12T14:08:23.357718Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
dp-mysql_legacy  | 2024-10-12T14:08:23.357720Z 0 [Note] InnoDB: Using Linux native AIO
dp-mysql_legacy  | 2024-10-12T14:08:23.357869Z 0 [Note] InnoDB: Number of pools: 1
dp-mysql_legacy  | 2024-10-12T14:08:23.357945Z 0 [Note] InnoDB: Using CPU crc32 instructions
dp-mysql_legacy  | 2024-10-12T14:08:23.359161Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
dp-mysql_legacy  | 2024-10-12T14:08:23.363492Z 0 [Note] InnoDB: Completed initialization of buffer pool
dp-mysql_legacy  | 2024-10-12T14:08:23.365009Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
dp-mysql_legacy  | 2024-10-12T14:08:23.376426Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
dp-mysql_legacy  | 2024-10-12T14:08:23.383380Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
dp-mysql_legacy  | 2024-10-12T14:08:23.383407Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
dp-mysql_legacy  | 2024-10-12T14:08:23.395393Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
dp-mysql_legacy  | 2024-10-12T14:08:23.395704Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:08:23.395709Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:08:23.396197Z 0 [Note] InnoDB: 5.7.37 started; log sequence number 2749976
dp-mysql_legacy  | 2024-10-12T14:08:23.396315Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
dp-mysql_legacy  | 2024-10-12T14:08:23.396456Z 0 [Note] Plugin 'FEDERATED' is disabled.
dp-mysql_legacy  | 2024-10-12T14:08:23.397140Z 0 [Note] InnoDB: Buffer pool(s) load completed at 241012 17:08:23
dp-mysql_legacy  | 2024-10-12T14:08:23.400521Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
dp-mysql_legacy  | 2024-10-12T14:08:23.400528Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:08:23.400531Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:08:23.400533Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:08:23.400907Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-12T14:08:23.400929Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:08:23.403327Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
dp-mysql_legacy  | 2024-10-12T14:08:23.408304Z 0 [Note] Event Scheduler: Loaded 0 events
dp-mysql_legacy  | 2024-10-12T14:08:23.408607Z 0 [Note] mysqld: ready for connections.
dp-mysql_legacy  | Version: '5.7.37'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
dp-mysql_legacy  | 2024-10-12 17:08:23+03:00 [Note] [Entrypoint]: Temporary server started.
dp-mysql_legacy  | 2024-10-12T14:08:27.451498Z 3 [Note] Access denied for user 'root'@'localhost' (using password: YES)
dp-mysql_legacy  | ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
dp-mysql_legacy  | /usr/local/bin/docker-entrypoint.sh: line 250:    91 Killed                  "$@" --skip-networking --default-time-zone=SYSTEM --socket="${SOCKET}"
dp-mysql_legacy exited with code 0
dp-mysql_legacy  | 2024-10-12 17:08:31+03:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
dp-mysql_legacy  | 2024-10-12 17:08:35+03:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
dp-mysql_legacy  | 2024-10-12 17:08:35+03:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
dp-mysql_legacy  | 2024-10-12T14:08:44.094233Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-12T14:08:44.094968Z 0 [Note] mysqld (mysqld 5.7.37) starting as process 1 ...
dp-mysql_legacy  | 2024-10-12T14:08:44.096695Z 0 [Note] InnoDB: PUNCH HOLE support available
dp-mysql_legacy  | 2024-10-12T14:08:44.096701Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
dp-mysql_legacy  | 2024-10-12T14:08:44.096703Z 0 [Note] InnoDB: Uses event mutexes
dp-mysql_legacy  | 2024-10-12T14:08:44.096705Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
dp-mysql_legacy  | 2024-10-12T14:08:44.096706Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
dp-mysql_legacy  | 2024-10-12T14:08:44.096708Z 0 [Note] InnoDB: Using Linux native AIO
dp-mysql_legacy  | 2024-10-12T14:08:44.096867Z 0 [Note] InnoDB: Number of pools: 1
dp-mysql_legacy  | 2024-10-12T14:08:44.096936Z 0 [Note] InnoDB: Using CPU crc32 instructions
dp-mysql_legacy  | 2024-10-12T14:08:44.098220Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
dp-mysql_legacy  | 2024-10-12T14:08:44.102774Z 0 [Note] InnoDB: Completed initialization of buffer pool
dp-mysql_legacy  | 2024-10-12T14:08:44.104418Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
dp-mysql_legacy  | 2024-10-12T14:08:44.117847Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
dp-mysql_legacy  | 2024-10-12T14:08:44.119249Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 2749995
dp-mysql_legacy  | 2024-10-12T14:08:44.119254Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 2750004
dp-mysql_legacy  | 2024-10-12T14:08:44.119257Z 0 [Note] InnoDB: Database was not shutdown normally!
dp-mysql_legacy  | 2024-10-12T14:08:44.119259Z 0 [Note] InnoDB: Starting crash recovery.
dp-mysql_legacy  | 2024-10-12T14:08:44.234790Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
dp-mysql_legacy  | 2024-10-12T14:08:44.234801Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
dp-mysql_legacy  | 2024-10-12T14:08:44.234831Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
dp-mysql_legacy  | 2024-10-12T14:08:44.244167Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
dp-mysql_legacy  | 2024-10-12T14:08:44.244488Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:08:44.244493Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-12T14:08:44.244944Z 0 [Note] InnoDB: 5.7.37 started; log sequence number 2750004
dp-mysql_legacy  | 2024-10-12T14:08:44.245024Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
dp-mysql_legacy  | 2024-10-12T14:08:44.245156Z 0 [Note] Plugin 'FEDERATED' is disabled.
dp-mysql_legacy  | 2024-10-12T14:08:44.256121Z 0 [Note] InnoDB: Buffer pool(s) load completed at 241012 17:08:44
dp-mysql_legacy  | 2024-10-12T14:08:44.257088Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
dp-mysql_legacy  | 2024-10-12T14:08:44.257097Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:08:44.257099Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:08:44.257101Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-12T14:08:44.257405Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-12T14:08:44.257428Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
dp-mysql_legacy  | 2024-10-12T14:08:44.257819Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
dp-mysql_legacy  | 2024-10-12T14:08:44.257845Z 0 [Note] IPv6 is available.
dp-mysql_legacy  | 2024-10-12T14:08:44.257855Z 0 [Note]   - '::' resolves to '::';
dp-mysql_legacy  | 2024-10-12T14:08:44.257868Z 0 [Note] Server socket created on IP: '::'.
dp-mysql_legacy  | 2024-10-12T14:08:44.260128Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
dp-mysql_legacy  | 2024-10-12T14:08:44.275170Z 0 [Note] Event Scheduler: Loaded 0 events
dp-mysql_legacy  | 2024-10-12T14:08:44.275305Z 0 [Note] mysqld: ready for connections.
dp-mysql_legacy  | Version: '5.7.37'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
dp-mysql_legacy  | 2024-10-12T14:08:46.183723Z 2 [Note] Access denied for user 'root'@'localhost' (using password: YES)
dp-mysql_legacy  | 2024-10-12T14:08:51.245115Z 3 [Note] Access denied for user 'root'@'localhost' (using password: YES)
dp-mysql_legacy  | 2024-10-12T14:08:56.299115Z 4 [Note] Access denied for user 'root'@'localhost' (using password: YES)

with the relevant part:

dp-mysql_legacy  | 2024-10-12T14:08:27.451498Z 3 [Note] Access denied for user 'root'@'localhost' (using password: YES)
dp-mysql_legacy  | ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
dp-mysql_legacy  | /usr/local/bin/docker-entrypoint.sh: line 250:    91 Killed                  "$@" --skip-networking --default-time-zone=SYSTEM --socket="${SOCKET}"
dp-mysql_legacy exited with code 0

Both tested with a clean docker state.
Also this is the inspected volume:

[
    {
        "Id": "57dfa157c6c572d147bfd179b56a2b264df85e9e244d227a362b59548b5f77eb",
        "Created": "2024-10-12T14:08:06.607853603Z",
        "Path": "docker-entrypoint.sh",
        "Args": [
            "--character-set-server=utf8mb4",
            "--collation-server=utf8mb4_unicode_ci"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 17162,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2024-10-12T14:08:30.673348188Z",
            "FinishedAt": "2024-10-12T14:08:30.555970563Z",
            "Health": {
                "Status": "unhealthy",
                "FailingStreak": 41,
                "Log": [
                    {
                        "Start": "2024-10-12T17:11:38.105191988+03:00",
                        "End": "2024-10-12T17:11:38.174633059+03:00",
                        "ExitCode": 1,
                        "Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\n"
                    },
                    {
                        "Start": "2024-10-12T17:11:43.175755098+03:00",
                        "End": "2024-10-12T17:11:43.26113763+03:00",
                        "ExitCode": 1,
                        "Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\n"
                    },
                    {
                        "Start": "2024-10-12T17:11:48.262541293+03:00",
                        "End": "2024-10-12T17:11:48.333550066+03:00",
                        "ExitCode": 1,
                        "Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\n"
                    },
                    {
                        "Start": "2024-10-12T17:11:53.334725571+03:00",
                        "End": "2024-10-12T17:11:53.387745909+03:00",
                        "ExitCode": 1,
                        "Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\n"
                    },
                    {
                        "Start": "2024-10-12T17:11:58.388715078+03:00",
                        "End": "2024-10-12T17:11:58.437182544+03:00",
                        "ExitCode": 1,
                        "Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\n"
                    }
                ]
            }
        },
        "Image": "sha256:82d2d47667cf062cc9e70c31b9322fafc527ed61806f32f48d8797a0e1488ac6",
        "ResolvConfPath": "/var/lib/docker/containers/57dfa157c6c572d147bfd179b56a2b264df85e9e244d227a362b59548b5f77eb/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/57dfa157c6c572d147bfd179b56a2b264df85e9e244d227a362b59548b5f77eb/hostname",
        "HostsPath": "/var/lib/docker/containers/57dfa157c6c572d147bfd179b56a2b264df85e9e244d227a362b59548b5f77eb/hosts",
        "LogPath": "/var/lib/docker/containers/57dfa157c6c572d147bfd179b56a2b264df85e9e244d227a362b59548b5f77eb/57dfa157c6c572d147bfd179b56a2b264df85e9e244d227a362b59548b5f77eb-json.log",
        "Name": "/dp-mysql_legacy",
        "RestartCount": 1,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/home/liviu/.repos/docker-playground/services/databases/mysql/initdb-legacy:/docker-entrypoint-initdb.d:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {
                    "max-file": "10",
                    "max-size": "100m",
                    "mode": "non-blocking"
                }
            },
            "NetworkMode": "dp_default",
            "PortBindings": {
                "3306/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "3305"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "unless-stopped",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": [],
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/0e12cf101ab028140bd799f4a06cabf19bc0d83f410575308a9aa7ddd4706a3c-init/diff:/var/lib/docker/overlay2/f34523f3cde4b248aaafc67c3f8de2a9e5f59c5f815040adf4f4255aa13077e1/diff:/var/lib/docker/overlay2/a68421f1568b9fb87d621487606299be353c62c7e1eb30b1be802234046bfaca/diff:/var/lib/docker/overlay2/e085dbca344a530dfd5eba5184cfd9bd1540765b05455e5a1dc5da71cdfd073b/diff:/var/lib/docker/overlay2/042d57476cfae16aeda09851dda2782c17eb33e18cb143c8cd126803f3b56ef7/diff:/var/lib/docker/overlay2/bbe1a53f273d1c6ee6dd095f9a75ffbac784aba81cafcb83f2453f22c081fe0c/diff:/var/lib/docker/overlay2/6ba31668fb90038c8a3e6d496bb9239f55db3c26a4ad99d2f604f94e1a5ff974/diff:/var/lib/docker/overlay2/3a4f402b647448ab963d85ebc7ff3c02930b87780df1353f1aa823d8ec13e935/diff:/var/lib/docker/overlay2/f4f503bd6b655f566630b8408a9143b58ca47ce03e72b328e748096e09ab5e7d/diff:/var/lib/docker/overlay2/2554ea3ea2bb4046852604a611bce3a8e0007917e93def219d0135399512de54/diff:/var/lib/docker/overlay2/49dc54a55f8c80d2c8c37aff0992cc1b5b20bd0d3f6b57c66ca8fb134f5c1c20/diff:/var/lib/docker/overlay2/7c4be218e93001aad3d6185b875a120ffb8f88435a9ec47d0d97bc027df01d51/diff",
                "MergedDir": "/var/lib/docker/overlay2/0e12cf101ab028140bd799f4a06cabf19bc0d83f410575308a9aa7ddd4706a3c/merged",
                "UpperDir": "/var/lib/docker/overlay2/0e12cf101ab028140bd799f4a06cabf19bc0d83f410575308a9aa7ddd4706a3c/diff",
                "WorkDir": "/var/lib/docker/overlay2/0e12cf101ab028140bd799f4a06cabf19bc0d83f410575308a9aa7ddd4706a3c/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/home/liviu/.repos/docker-playground/services/databases/mysql/initdb-legacy",
                "Destination": "/docker-entrypoint-initdb.d",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "volume",
                "Name": "6f8932dcc9219ef11a8d018aa54dc525c724141a310e52bfe6941691d53239d2",
                "Source": "/var/lib/docker/volumes/6f8932dcc9219ef11a8d018aa54dc525c724141a310e52bfe6941691d53239d2/_data",
                "Destination": "/var/lib/mysql",
                "Driver": "local",
                "Mode": "",
                "RW": true,
                "Propagation": ""
            }
        ],
        "Config": {
            "Hostname": "57dfa157c6c5",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "3306/tcp": {},
                "33060/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "TZ=Europe/Bucharest",
                "MYSQLD_EXPORTER_PASSWORD=password",
                "MYSQLD_EXPORTER_USER=exporter",
                "MYSQL_DATABASE=test",
                "MYSQL_PASSWORD=password",
                "MYSQL_ROOT_PASSWORD=password1",
                "MYSQL_USER=user",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "GOSU_VERSION=1.14",
                "MYSQL_MAJOR=5.7",
                "MYSQL_VERSION=5.7.37-1debian10"
            ],
            "Cmd": [
                "--character-set-server=utf8mb4",
                "--collation-server=utf8mb4_unicode_ci"
            ],
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "/usr/bin/mysql --user=root --password=password1 --execute \"SHOW DATABASES;\""
                ],
                "Interval": 5000000000,
                "Timeout": 5000000000,
                "StartPeriod": 5000000000,
                "Retries": 3
            },
            "Image": "mysql:5.7.37",
            "Volumes": {
                "/var/lib/mysql": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "docker-entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "com.centurylinklabs.watchtower.enable": "true",
                "com.docker.compose.config-hash": "ec8f5d06f38fde77303a114a01129eb83c46d68aa4b1c979e22e22bf4204c54a",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "",
                "com.docker.compose.image": "sha256:82d2d47667cf062cc9e70c31b9322fafc527ed61806f32f48d8797a0e1488ac6",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "dp",
                "com.docker.compose.project.config_files": "/home/liviu/.repos/docker-playground/docker-compose.yml,/home/liviu/.repos/docker-playground/services/databases/mongo/docker-compose.legacy.yml,/home/liviu/.repos/docker-playground/services/databases/mongo/docker-compose.yml,/home/liviu/.repos/docker-playground/services/databases/mysql/docker-compose.legacy.yml,/home/liviu/.repos/docker-playground/services/databases/mysql/docker-compose.yml,/home/liviu/.repos/docker-playground/services/databases/postgres/docker-compose.yml,/home/liviu/.repos/docker-playground/services/metrics/docker-compose.yml,/home/liviu/.repos/docker-playground/services/metrics/grafana/docker-compose.yml,/home/liviu/.repos/docker-playground/services/tools/mailpit.yml,/home/liviu/.repos/docker-playground/services/tools/watchtower.yml,/home/liviu/.repos/docker-playground/services/tools/rabbitmq.yml,/home/liviu/.repos/docker-playground/services/tools/redis-stack.yml,/home/liviu/.repos/docker-playground/services/tools/open-webui.yml,/home/liviu/.repos/docker-playground/services/tools/it-tools.yml",
                "com.docker.compose.project.working_dir": "/home/liviu/.repos/docker-playground",
                "com.docker.compose.service": "mysql_legacy",
                "com.docker.compose.version": "2.29.7"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "7d2fd174e6fde1cb27de2aa6fa059ea5acee4ae794c2cb905a0954d4d03eedc8",
            "SandboxKey": "/var/run/docker/netns/7d2fd174e6fd",
            "Ports": {
                "3306/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "3305"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "3305"
                    }
                ],
                "33060/tcp": null
            },
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "dp-mysql": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "dp-mysql_legacy",
                        "mysql_legacy"
                    ],
                    "MacAddress": "02:42:ac:16:00:02",
                    "DriverOpts": null,
                    "NetworkID": "4e3feba268fd581e2ed6ab24d39ce584110558849715a97fe3852d04f14483f4",
                    "EndpointID": "c6da8be18621141fbc2412562023759c9525053bd5e7c3e483279307cfd91db7",
                    "Gateway": "172.22.0.1",
                    "IPAddress": "172.22.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "dp-mysql_legacy",
                        "mysql_legacy",
                        "57dfa157c6c5"
                    ]
                },
                "dp-prometheus": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "dp-mysql_legacy",
                        "mysql_legacy"
                    ],
                    "MacAddress": "02:42:ac:1c:00:02",
                    "DriverOpts": null,
                    "NetworkID": "a88188010891bddf32fc84e90a5c3e48206b368b3a85c14110158dd36bd6b9b4",
                    "EndpointID": "e7c280fde192ac951830e9626f384245d9d82adcadce03b00ff49430d3eb0ae5",
                    "Gateway": "172.28.0.1",
                    "IPAddress": "172.28.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "dp-mysql_legacy",
                        "mysql_legacy",
                        "57dfa157c6c5"
                    ]
                },
                "dp_default": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "dp-mysql_legacy",
                        "mysql_legacy"
                    ],
                    "MacAddress": "02:42:c0:a8:10:02",
                    "DriverOpts": null,
                    "NetworkID": "edacb6fbbed65841314a2b6c418f875ccae26572bf279fe645d9dc79902ce4f6",
                    "EndpointID": "ad35d2be0da347f282ba4b38c5c2d619abecea7d859fbf035e4ec277f8ce3937",
                    "Gateway": "192.168.16.1",
                    "IPAddress": "192.168.16.2",
                    "IPPrefixLen": 20,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "dp-mysql_legacy",
                        "mysql_legacy",
                        "57dfa157c6c5"
                    ]
                }
            }
        }
    }
]

@ionesculiviucristian
Copy link

It could be that I am running as the host, but didn't test:

OS: Arch Linux x86_64
Kernel: Linux 6.6.56-1-lts

@yosifkit
Copy link
Member

dp-mysql_legacy  | ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)

This log line is from your healthcheck firing too early and the container not having yet finished database initialization. But it shouldn't be the cause of the entrypoint script being killed. Increasing the start_period should make this go away.

Since it is dying during initialization, perhaps one of your scripts in "./services/databases/mysql/initdb-legacy:/docker-entrypoint-initdb.d" is failing somewhere?


Note that MySQL 5.7 is end of life since 31 October 2023.

@ionesculiviucristian
Copy link

ionesculiviucristian commented Oct 17, 2024

I've used the same script on the 3 versions; only 5.7.37 fails on my Arch machine. The script inside is:

#!/bin/bash
set -eu

mysql -u root -p${MYSQL_ROOT_PASSWORD} --execute \
"CREATE USER '${MYSQLD_EXPORTER_USER}'@'%' IDENTIFIED BY '${MYSQLD_EXPORTER_PASSWORD}' WITH MAX_USER_CONNECTIONS 3;
GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO '${MYSQLD_EXPORTER_USER}'@'%';"

but on my Kubuntu machine works, with the same docker file, outputting:

dp-mysql_legacy  | 2024-10-17 14:04:25+03:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
dp-mysql_legacy  | 2024-10-17 14:04:25+03:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
dp-mysql_legacy  | 2024-10-17 14:04:25+03:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
dp-mysql_legacy  | 2024-10-17 14:04:25+03:00 [Note] [Entrypoint]: Initializing database files
dp-mysql_legacy  | 2024-10-17T11:04:25.314976Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-17T11:04:25.472670Z 0 [Warning] InnoDB: New log files created, LSN=45790
dp-mysql_legacy  | 2024-10-17T11:04:25.503984Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
dp-mysql_legacy  | 2024-10-17T11:04:25.558817Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 92518703-8c77-11ef-961b-0242ac140002.
dp-mysql_legacy  | 2024-10-17T11:04:25.559754Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
dp-mysql_legacy  | 2024-10-17T11:04:26.272075Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-17T11:04:26.272086Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-17T11:04:26.272480Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-17T11:04:26.339263Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
dp-mysql_legacy  | 2024-10-17 14:04:28+03:00 [Note] [Entrypoint]: Database files initialized
dp-mysql_legacy  | 2024-10-17 14:04:28+03:00 [Note] [Entrypoint]: Starting temporary server
dp-mysql_legacy  | 2024-10-17 14:04:28+03:00 [Note] [Entrypoint]: Waiting for server startup
dp-mysql_legacy  | 2024-10-17T11:04:28.633292Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-17T11:04:28.634824Z 0 [Note] mysqld (mysqld 5.7.37) starting as process 77 ...
dp-mysql_legacy  | 2024-10-17T11:04:28.637089Z 0 [Note] InnoDB: PUNCH HOLE support available
dp-mysql_legacy  | 2024-10-17T11:04:28.637097Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
dp-mysql_legacy  | 2024-10-17T11:04:28.637099Z 0 [Note] InnoDB: Uses event mutexes
dp-mysql_legacy  | 2024-10-17T11:04:28.637101Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
dp-mysql_legacy  | 2024-10-17T11:04:28.637103Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
dp-mysql_legacy  | 2024-10-17T11:04:28.637105Z 0 [Note] InnoDB: Using Linux native AIO
dp-mysql_legacy  | 2024-10-17T11:04:28.637533Z 0 [Note] InnoDB: Number of pools: 1
dp-mysql_legacy  | 2024-10-17T11:04:28.637636Z 0 [Note] InnoDB: Using CPU crc32 instructions
dp-mysql_legacy  | 2024-10-17T11:04:28.639030Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
dp-mysql_legacy  | 2024-10-17T11:04:28.645069Z 0 [Note] InnoDB: Completed initialization of buffer pool
dp-mysql_legacy  | 2024-10-17T11:04:28.647173Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
dp-mysql_legacy  | 2024-10-17T11:04:28.659192Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
dp-mysql_legacy  | 2024-10-17T11:04:28.665061Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
dp-mysql_legacy  | 2024-10-17T11:04:28.665110Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
dp-mysql_legacy  | 2024-10-17T11:04:28.681342Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
dp-mysql_legacy  | 2024-10-17T11:04:28.682014Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-17T11:04:28.682025Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-17T11:04:28.682589Z 0 [Note] InnoDB: 5.7.37 started; log sequence number 2749976
dp-mysql_legacy  | 2024-10-17T11:04:28.682835Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
dp-mysql_legacy  | 2024-10-17T11:04:28.682961Z 0 [Note] Plugin 'FEDERATED' is disabled.
dp-mysql_legacy  | 2024-10-17T11:04:28.685154Z 0 [Note] InnoDB: Buffer pool(s) load completed at 241017 14:04:28
dp-mysql_legacy  | 2024-10-17T11:04:28.689361Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
dp-mysql_legacy  | 2024-10-17T11:04:28.689381Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
dp-mysql_legacy  | 2024-10-17T11:04:28.689384Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-17T11:04:28.689387Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-17T11:04:28.689814Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-17T11:04:28.689842Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
dp-mysql_legacy  | 2024-10-17T11:04:28.691079Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
dp-mysql_legacy  | 2024-10-17T11:04:28.698641Z 0 [Note] Event Scheduler: Loaded 0 events
dp-mysql_legacy  | 2024-10-17T11:04:28.698871Z 0 [Note] mysqld: ready for connections.
dp-mysql_legacy  | Version: '5.7.37'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
dp-mysql_legacy  | 2024-10-17 14:04:29+03:00 [Note] [Entrypoint]: Temporary server started.
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
dp-mysql_legacy  | 2024-10-17T11:04:30.203168Z 4 [Note] Access denied for user 'root'@'localhost' (using password: YES)
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
dp-mysql_legacy  | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
dp-mysql_legacy  | 2024-10-17 14:04:30+03:00 [Note] [Entrypoint]: Creating database test
dp-mysql_legacy  | 2024-10-17 14:04:30+03:00 [Note] [Entrypoint]: Creating user user
dp-mysql_legacy  | 2024-10-17 14:04:30+03:00 [Note] [Entrypoint]: Giving user user access to schema test
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-17 14:04:30+03:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/create_mysqld_exporter_user.sh
dp-mysql_legacy  | mysql: [Warning] Using a password on the command line interface can be insecure.
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-17 14:04:30+03:00 [Note] [Entrypoint]: Stopping temporary server
dp-mysql_legacy  | 2024-10-17T11:04:30.273011Z 0 [Note] Giving 0 client threads a chance to die gracefully
dp-mysql_legacy  | 2024-10-17T11:04:30.273026Z 0 [Note] Shutting down slave threads
dp-mysql_legacy  | 2024-10-17T11:04:30.273028Z 0 [Note] Forcefully disconnecting 0 remaining clients
dp-mysql_legacy  | 2024-10-17T11:04:30.273032Z 0 [Note] Event Scheduler: Purging the queue. 0 events
dp-mysql_legacy  | 2024-10-17T11:04:30.273061Z 0 [Note] Binlog end
dp-mysql_legacy  | 2024-10-17T11:04:30.273582Z 0 [Note] Shutting down plugin 'ngram'
dp-mysql_legacy  | 2024-10-17T11:04:30.273589Z 0 [Note] Shutting down plugin 'partition'
dp-mysql_legacy  | 2024-10-17T11:04:30.273592Z 0 [Note] Shutting down plugin 'BLACKHOLE'
dp-mysql_legacy  | 2024-10-17T11:04:30.273596Z 0 [Note] Shutting down plugin 'ARCHIVE'
dp-mysql_legacy  | 2024-10-17T11:04:30.273598Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
dp-mysql_legacy  | 2024-10-17T11:04:30.273629Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
dp-mysql_legacy  | 2024-10-17T11:04:30.273633Z 0 [Note] Shutting down plugin 'MyISAM'
dp-mysql_legacy  | 2024-10-17T11:04:30.273638Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
dp-mysql_legacy  | 2024-10-17T11:04:30.273641Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
dp-mysql_legacy  | 2024-10-17T11:04:30.273644Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
dp-mysql_legacy  | 2024-10-17T11:04:30.273646Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
dp-mysql_legacy  | 2024-10-17T11:04:30.273648Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
dp-mysql_legacy  | 2024-10-17T11:04:30.273650Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
dp-mysql_legacy  | 2024-10-17T11:04:30.273651Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
dp-mysql_legacy  | 2024-10-17T11:04:30.273653Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
dp-mysql_legacy  | 2024-10-17T11:04:30.273655Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
dp-mysql_legacy  | 2024-10-17T11:04:30.273657Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
dp-mysql_legacy  | 2024-10-17T11:04:30.273659Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
dp-mysql_legacy  | 2024-10-17T11:04:30.273660Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
dp-mysql_legacy  | 2024-10-17T11:04:30.273662Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
dp-mysql_legacy  | 2024-10-17T11:04:30.273663Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
dp-mysql_legacy  | 2024-10-17T11:04:30.273665Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
dp-mysql_legacy  | 2024-10-17T11:04:30.273666Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
dp-mysql_legacy  | 2024-10-17T11:04:30.273668Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
dp-mysql_legacy  | 2024-10-17T11:04:30.273670Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
dp-mysql_legacy  | 2024-10-17T11:04:30.273671Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
dp-mysql_legacy  | 2024-10-17T11:04:30.273673Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
dp-mysql_legacy  | 2024-10-17T11:04:30.273674Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
dp-mysql_legacy  | 2024-10-17T11:04:30.273676Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
dp-mysql_legacy  | 2024-10-17T11:04:30.273677Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
dp-mysql_legacy  | 2024-10-17T11:04:30.273679Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
dp-mysql_legacy  | 2024-10-17T11:04:30.273680Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
dp-mysql_legacy  | 2024-10-17T11:04:30.273681Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
dp-mysql_legacy  | 2024-10-17T11:04:30.273683Z 0 [Note] Shutting down plugin 'INNODB_CMP'
dp-mysql_legacy  | 2024-10-17T11:04:30.273684Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
dp-mysql_legacy  | 2024-10-17T11:04:30.273686Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
dp-mysql_legacy  | 2024-10-17T11:04:30.273688Z 0 [Note] Shutting down plugin 'INNODB_TRX'
dp-mysql_legacy  | 2024-10-17T11:04:30.273690Z 0 [Note] Shutting down plugin 'InnoDB'
dp-mysql_legacy  | 2024-10-17T11:04:30.273736Z 0 [Note] InnoDB: FTS optimize thread exiting.
dp-mysql_legacy  | 2024-10-17T11:04:30.273789Z 0 [Note] InnoDB: Starting shutdown...
dp-mysql_legacy  | 2024-10-17T11:04:30.374334Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
dp-mysql_legacy  | 2024-10-17T11:04:30.374945Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 241017 14:04:30
dp-mysql_legacy  | 2024-10-17T11:04:31.587499Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12659904
dp-mysql_legacy  | 2024-10-17T11:04:31.590834Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
dp-mysql_legacy  | 2024-10-17T11:04:31.590849Z 0 [Note] Shutting down plugin 'MEMORY'
dp-mysql_legacy  | 2024-10-17T11:04:31.590853Z 0 [Note] Shutting down plugin 'CSV'
dp-mysql_legacy  | 2024-10-17T11:04:31.590857Z 0 [Note] Shutting down plugin 'sha256_password'
dp-mysql_legacy  | 2024-10-17T11:04:31.590859Z 0 [Note] Shutting down plugin 'mysql_native_password'
dp-mysql_legacy  | 2024-10-17T11:04:31.591032Z 0 [Note] Shutting down plugin 'binlog'
dp-mysql_legacy  | 2024-10-17T11:04:31.593480Z 0 [Note] mysqld: Shutdown complete
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-17 14:04:32+03:00 [Note] [Entrypoint]: Temporary server stopped
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-17 14:04:32+03:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
dp-mysql_legacy  | 
dp-mysql_legacy  | 2024-10-17T11:04:32.476261Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
dp-mysql_legacy  | 2024-10-17T11:04:32.477740Z 0 [Note] mysqld (mysqld 5.7.37) starting as process 1 ...
dp-mysql_legacy  | 2024-10-17T11:04:32.479995Z 0 [Note] InnoDB: PUNCH HOLE support available
dp-mysql_legacy  | 2024-10-17T11:04:32.480004Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
dp-mysql_legacy  | 2024-10-17T11:04:32.480006Z 0 [Note] InnoDB: Uses event mutexes
dp-mysql_legacy  | 2024-10-17T11:04:32.480008Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
dp-mysql_legacy  | 2024-10-17T11:04:32.480010Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
dp-mysql_legacy  | 2024-10-17T11:04:32.480012Z 0 [Note] InnoDB: Using Linux native AIO
dp-mysql_legacy  | 2024-10-17T11:04:32.480238Z 0 [Note] InnoDB: Number of pools: 1
dp-mysql_legacy  | 2024-10-17T11:04:32.480327Z 0 [Note] InnoDB: Using CPU crc32 instructions
dp-mysql_legacy  | 2024-10-17T11:04:32.481782Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
dp-mysql_legacy  | 2024-10-17T11:04:32.488088Z 0 [Note] InnoDB: Completed initialization of buffer pool
dp-mysql_legacy  | 2024-10-17T11:04:32.490092Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
dp-mysql_legacy  | 2024-10-17T11:04:32.501688Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
dp-mysql_legacy  | 2024-10-17T11:04:32.507476Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
dp-mysql_legacy  | 2024-10-17T11:04:32.507522Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
dp-mysql_legacy  | 2024-10-17T11:04:32.523061Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
dp-mysql_legacy  | 2024-10-17T11:04:32.523491Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-17T11:04:32.523498Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
dp-mysql_legacy  | 2024-10-17T11:04:32.523881Z 0 [Note] InnoDB: 5.7.37 started; log sequence number 12659904
dp-mysql_legacy  | 2024-10-17T11:04:32.523992Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
dp-mysql_legacy  | 2024-10-17T11:04:32.524153Z 0 [Note] Plugin 'FEDERATED' is disabled.
dp-mysql_legacy  | 2024-10-17T11:04:32.526858Z 0 [Note] InnoDB: Buffer pool(s) load completed at 241017 14:04:32
dp-mysql_legacy  | 2024-10-17T11:04:32.529037Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
dp-mysql_legacy  | 2024-10-17T11:04:32.529050Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
dp-mysql_legacy  | 2024-10-17T11:04:32.529054Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-17T11:04:32.529057Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
dp-mysql_legacy  | 2024-10-17T11:04:32.529379Z 0 [Warning] CA certificate ca.pem is self signed.
dp-mysql_legacy  | 2024-10-17T11:04:32.529408Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
dp-mysql_legacy  | 2024-10-17T11:04:32.529809Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
dp-mysql_legacy  | 2024-10-17T11:04:32.529839Z 0 [Note] IPv6 is available.
dp-mysql_legacy  | 2024-10-17T11:04:32.529852Z 0 [Note]   - '::' resolves to '::';
dp-mysql_legacy  | 2024-10-17T11:04:32.529867Z 0 [Note] Server socket created on IP: '::'.
dp-mysql_legacy  | 2024-10-17T11:04:32.530713Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
dp-mysql_legacy  | 2024-10-17T11:04:32.536323Z 0 [Note] Event Scheduler: Loaded 0 events
dp-mysql_legacy  | 2024-10-17T11:04:32.536520Z 0 [Note] mysqld: ready for connections.
dp-mysql_legacy  | Version: '5.7.37'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)

Could the Arch host be the problem? Also my system freezes for a few seconds when starting the 5.7.37 container :|.

@ionesculiviucristian
Copy link

Switched to 6.11.3-arch1-1 kernel and have no problems anymore so probably the kernel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

6 participants