Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created February 25, 2016 05:07
Show Gist options
  • Save yuuichi-fujioka/0ff23a94df6526d510b1 to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/0ff23a94df6526d510b1 to your computer and use it in GitHub Desktop.
mysqldump
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