Skip to content

Instantly share code, notes, and snippets.

@cpuguy83 cpuguy83/Dockerfile
Created Jan 16, 2014

Embed
What would you like to do?
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
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
You can’t perform that action at this time.