идея понятна. Опробовано. Не работает и не сработает. Увы.
entrypoint перетирает дафолтовый wrapper который запускает демон. Я добавил в
dump.sh попытку подрубиться к демону в цикле, вот лог:
db_1 | Sun Feb 23 22:38:27 UTC 2020
db_1 | mysql: [Warning] Using a password on the command line interface can be insecure.
db_1 | ERROR 2003 (HY000): Can't connect to MySQL server on '
127.0.0.1' (111)
db_1 | .
db_1 | Sun Feb 23 22:38:28 UTC 2020
db_1 | mysql: [Warning] Using a password on the command line interface can be insecure.
db_1 | ERROR 2003 (HY000): Can't connect to MySQL server on '
127.0.0.1' (111)
db_1 | .
db_1 | Sun Feb 23 22:38:29 UTC 2020
db_1 | mysql: [Warning] Using a password on the command line interface can be insecure.
db_1 | ERROR 2003 (HY000): Can't connect to MySQL server on '
127.0.0.1' (111)
db_1 | .