Created
January 10, 2017 06:01
-
-
Save wingsum93/367cdd7b90875c059acbf6e9f6a9156f to your computer and use it in GitHub Desktop.
a docker build file for instance use mysql docker container
This file contains 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
# 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