This should be all you need to get going with Docker.
Things to note:
I've called the image "heymugsy", but you could call it whatever you like. ("margyle/mugsy", "mugsy/decaf"...)
The run command runs the container in the foreground, and removes the container when you exit out (Ctrl + C). This is probably fine/ideal for development, but you'd probably want to run it in the background for Production.
I didn't bother setting up a MySQL user. It just uses root with no password.
I had to mount /var/lib/mysql as a volume on the host for some reason (it's what Google told me). Actually, installing MySql and Flask-MySql was by far the most painful bit. I think you should consider SQLite, as was brought up a while back. It would remove the need for editing the config file too.
This should be all you need to get going with Docker.
Things to note:
run
command runs the container in the foreground, and removes the container when you exit out (Ctrl + C). This is probably fine/ideal for development, but you'd probably want to run it in the background for Production.root
with no password./var/lib/mysql
as a volume on the host for some reason (it's what Google told me). Actually, installing MySql and Flask-MySql was by far the most painful bit. I think you should consider SQLite, as was brought up a while back. It would remove the need for editing the config file too.