clitools icon indicating copy to clipboard operation
clitools copied to clipboard

MySQL sync directly in the docker container

Open baschny opened this issue 9 years ago • 0 comments

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?

baschny avatar Aug 11 '16 13:08 baschny