Created
July 11, 2017 13:10
-
-
Save vladzadvorny/44d3e03b210c8735c1695b10d332713f to your computer and use it in GitHub Desktop.
This file contains 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
# Get | |
docker pull mariadb:latest | |
# Run | |
run --name mariadbtest -p 127.0.0.1:3305:3306 -e MYSQL_ROOT_PASSWORD=mypass -d mariadb | |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment