Skip to content

Instantly share code, notes, and snippets.

@wingsum93
Created January 10, 2017 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wingsum93/367cdd7b90875c059acbf6e9f6a9156f to your computer and use it in GitHub Desktop.
Save wingsum93/367cdd7b90875c059acbf6e9f6a9156f to your computer and use it in GitHub Desktop.
a docker build file for instance use mysql docker container
# author: eric ho
FROM mysql:latest
ENV MYSQL_ROOT_PASSWORD root
ENV MYSQL_DATABASE eric
ENV MYSQL_USER eric
ENV MYSQL_PASSWORD eric
ENV MYSQL_ROOT_HOST %
ENV MYSQL_DATABASE WMS
CMD mysql
CMD use mysql;
CMD update user set host='%' where user='eric';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment