Skip to content

Commit 9f95658

Browse files
authored
Merge pull request #199 from mysql/master
Update Dockerfile to modify correct config file
2 parents 9fc0863 + a320aaa commit 9f95658

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

5.7/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ RUN { \
5050

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

5757
VOLUME /var/lib/mysql
5858

0 commit comments

Comments
 (0)