Last active
May 6, 2019 02:42
-
-
Save febridev/b687f055b9dccf94ef2ab72493caced0 to your computer and use it in GitHub Desktop.
run with local ip docker mysql
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
$ docker run -p 3306:3306 --name shopapp-mysql -e MYSQL_ROOT_PASSWORD=myRootpwd32 -d mysql:5.7 | |
---- add for location datafile | |
-v /my/own/datadir:/var/lib/mysql | |
---- add config file | |
-v /my/custom:/etc/mysql/conf.d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment