Skip to content

Commit

Permalink
Merge pull request docker-library#199 from mysql/master
Browse files Browse the repository at this point in the history
Update Dockerfile to modify correct config file
  • Loading branch information
tianon authored Sep 7, 2016
2 parents 9fc0863 + a320aaa commit 9f95658
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 5.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ RUN { \

# comment out a few problematic configuration values
# don't reverse lookup hostnames, they are usually another container
RUN sed -Ei 's/^(bind-address|log)/#&/' /etc/mysql/my.cnf \
&& echo 'skip-host-cache\nskip-name-resolve' | awk '{ print } $1 == "[mysqld]" && c == 0 { c = 1; system("cat") }' /etc/mysql/my.cnf > /tmp/my.cnf \
&& mv /tmp/my.cnf /etc/mysql/my.cnf
RUN sed -Ei 's/^(bind-address|log)/#&/' /etc/mysql/mysql.conf.d/mysqld.cnf \
&& echo 'skip-host-cache\nskip-name-resolve' | awk '{ print } $1 == "[mysqld]" && c == 0 { c = 1; system("cat") }' /etc/mysql/mysql.conf.d/mysqld.cnf > /tmp/mysqld.cnf \
&& mv /tmp/mysqld.cnf /etc/mysql/mysql.conf.d/mysqld.cnf

VOLUME /var/lib/mysql

Expand Down

0 comments on commit 9f95658

Please sign in to comment.