sudo docker exec
-i <CONTAINER_ID> mysqldump
-u <DATABASE_USERNAME>
-p --databases <DATABASE_NAME> > yourbackup.sql
Backup a MySQL database from within a Docker container
Simple command to backup a MySQL database from within a Docker container
See also...
Docker/Docker compose cheatsheet
My most often forgotten docker commands
Test Accessibility like you resize your browser
Resizing our browser window to try and spot cosmetic bugs in our apps is almost second nature, but why aren't we doing the same for Accessibility?
Creating an optimised GitLab pipline for eslint tests
Steps on how I created an optimised GitLab pipline for running eslint tests.