Created
February 25, 2016 05:07
-
-
Save yuuichi-fujioka/0ff23a94df6526d510b1 to your computer and use it in GitHub Desktop.
mysqldump
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -ti --rm --link ${container_name}:mysql mariadb sh -c 'exec mysqldump -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" --all-databases' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment