Skip to content

Instantly share code, notes, and snippets.

@emestee
Created June 20, 2015 10:10
Show Gist options
  • Save emestee/6b7a74bccadeec0dfe21 to your computer and use it in GitHub Desktop.
Save emestee/6b7a74bccadeec0dfe21 to your computer and use it in GitHub Desktop.
MySQL under docker doesn't allow connections on docker interface - solution
FROM mysql:5
COPY my.cnf /etc/mysql/conf.d/bind.conf
COPY schema.sql /root/schema.sql
VOLUME ["/var/lib/mysql"]
CMD mysqld
[mysqld]
bind-address=0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment