Last active
January 24, 2017 01:41
-
-
Save tsundara/c369a38b4ac00f35c4d57cf658c972ea to your computer and use it in GitHub Desktop.
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
#Create a new mysql server instance (a docker container). | |
#On Mac OS | |
#Data will be stored in the directory /Users/johndoe/Dockerdata/mysqldata | |
docker run --name newmysql -v /Users/johndoe/Dockerdata/mysqldata:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=mysqlpassword -d mysql | |
#Get IP address of Docker Container 39baf42be8d4 | |
docker inspect --format '{{ .NetworkSettings.IPAddress }}' 39baf42be8d4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment