Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Just a reminder on how to run, stop, and remove a MySQL instance on docker.
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