Skip to content

Instantly share code, notes, and snippets.

@febridev
Last active May 6, 2019 02:42
Show Gist options
  • Save febridev/b687f055b9dccf94ef2ab72493caced0 to your computer and use it in GitHub Desktop.
Save febridev/b687f055b9dccf94ef2ab72493caced0 to your computer and use it in GitHub Desktop.
run with local ip docker mysql
$ 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