File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ RUN { \
5151# comment out a few problematic configuration values
5252# don't reverse lookup hostnames, they are usually another container
5353RUN sed -Ei 's/^(bind-address|log)/#&/' /etc/mysql/my.cnf \
54- && echo 'skip-host-cache\n skip-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
54+ && echo '[mysqld]\n skip-host-cache\n skip-name-resolve' > /etc/mysql/conf.d/docker.cnf
5655
5756VOLUME /var/lib/mysql
5857
Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ RUN { \
5151# comment out a few problematic configuration values
5252# don't reverse lookup hostnames, they are usually another container
5353RUN sed -Ei 's/^(bind-address|log)/#&/' /etc/mysql/mysql.conf.d/mysqld.cnf \
54- && echo 'skip-host-cache\n skip-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
54+ && echo '[mysqld]\n skip-host-cache\n skip-name-resolve' > /etc/mysql/conf.d/docker.cnf
5655
5756VOLUME /var/lib/mysql
5857
Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ RUN { \
5151# comment out a few problematic configuration values
5252# don't reverse lookup hostnames, they are usually another container
5353RUN sed -Ei 's/^(bind-address|log)/#&/' /etc/mysql/mysql.conf.d/mysqld.cnf \
54- && echo 'skip-host-cache\n skip-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
54+ && echo '[mysqld]\n skip-host-cache\n skip-name-resolve' > /etc/mysql/conf.d/docker.cnf
5655
5756VOLUME /var/lib/mysql
5857
You can’t perform that action at this time.
0 commit comments