Last active
August 11, 2016 10:53
-
-
Save rjmacarthy/c5d3328da1429ce95117ba5e3c34fb9c to your computer and use it in GitHub Desktop.
docker mysql
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
FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd default') DO %i | |
# Install | |
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=password -d mysql:tag | |
# Go to bash | |
docker exec -it some-mysql bash | |
# mysql | |
mysql -u root -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment