This commit is contained in:
那他 2019-02-11 17:03:53 +08:00 committed by GitHub
parent 0cf11bb933
commit 91d83d40b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ RUN sed -i 's/archive.ubuntu.com/'$ubuntu_mirror'/g' /etc/apt/sources.list && \
# install mysql
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server && \
mkdir -p /var/run/mysqld && chown mysql:mysql /var/run/mysqld && \
# sed -i -e "s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf && \
sed -i 's/^\(log_error\s.*\)/# \1/' /etc/mysql/my.cnf && \
echo "mysqld_safe &" > /tmp/mysql_config && \