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 { \
51
51
# comment out a few problematic configuration values
52
52
# don't reverse lookup hostnames, they are usually another container
53
53
RUN 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
56
55
57
56
VOLUME /var/lib/mysql
58
57
Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ RUN { \
51
51
# comment out a few problematic configuration values
52
52
# don't reverse lookup hostnames, they are usually another container
53
53
RUN 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
56
55
57
56
VOLUME /var/lib/mysql
58
57
Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ RUN { \
51
51
# comment out a few problematic configuration values
52
52
# don't reverse lookup hostnames, they are usually another container
53
53
RUN 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
56
55
57
56
VOLUME /var/lib/mysql
58
57
You can’t perform that action at this time.
0 commit comments