If I have an mysql docker container with my app + mysql, and want to sync from the external live server, why not use the container which already contains the tools required for that instead of requiring locally installed mysql binaries?
Instead of running:
mysql -h<docker-ip> -uroot -pdev
The tool would run:
docker-compose run --rm mysql mysql -hmysql -uroot -pdev
The sync tool already checks if there are docker containers around anyway (why??) so why not use them for robustness and isolation?