Created
January 16, 2014 15:08
-
-
Save cpuguy83/8456444 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
| docker run -d -name mysql_data my/awesome_mysql_stuff bash # data only | |
| docker run -d -name mysql_stuff -volumes-from mysql_data my/awesom_mysql_stuff # Main container | |
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
| FROM ubuntu | |
| # some awesome stuff with mysql | |
| VOLUME /var/lib/mysql | |
| --- End Dockerfile --- | |
| docker build -t my/awesome_mysql_stuff | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment