Last active
September 21, 2019 18:08
-
-
Save brunokrebs/af77f582f0e650a62a6f06e84cd06f91 to your computer and use it in GitHub Desktop.
Just a reminder on how to run, stop, and remove a MySQL instance on docker.
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 --name mysql \ | |
-p 3306:3306 \ | |
-e MYSQL_ROOT_PASSWORD=my-password \ | |
-e MYSQL_DATABASE=some-db-name \ | |
-e MYSQL_USER=some-user \ | |
-e MYSQL_PASSWORD=some-user-password \ | |
-d mysql:5.7 | |
docker stop mysql | |
docker rm mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment