Are you by chance using https://github.com/lorisleiva/laravel-docker ?
We are seeing the same error with that after the 8.2 alpine image was updated. I haven't found a suitable solution yet.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
We run a testing stage within the latest mysql image on jenkins. Inside of that image we run migrations inside the latest project image. This has been running flawlessly for years but it failed last week and i cant seem to understand why.
[2024-12-17T14:38:27.360Z] + php artisan migrate '--env=testing' --seed
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z] INFO Preparing database.
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z] Creating migration table ....................................... 8.87ms DONE
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z] INFO Loading stored database schemas.
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z] database/schema/mysql-schema.sql .............................. 53.00ms FAIL
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z] In Process.php line 270:
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z] The command "mysql --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_L
[2024-12-17T14:38:28.379Z] OAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}
[2024-12-17T14:38:28.379Z] " --database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" failed.
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z] Exit Code: 1(General error)
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z] Working directory: /home/ubuntu/workspace/digital-dealership_jenkins_test
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z] Output:
[2024-12-17T14:38:28.379Z] ================
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z] Error Output:
[2024-12-17T14:38:28.379Z] ================
[2024-12-17T14:38:28.379Z] mysql: Deprecated program name. It will be removed in a future release, use
[2024-12-17T14:38:28.379Z] '/usr/bin/mariadb' instead
[2024-12-17T14:38:28.379Z] ERROR 2026 (HY000): TLS/SSL error: self-signed certificate in certificate c
[2024-12-17T14:38:28.379Z] hain
[2024-12-17T14:38:28.379Z]
[2024-12-17T14:38:28.379Z]
Please or to participate in this conversation.