mysql 5.7 docker file
Posted 高因咖啡
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 5.7 docker file相关的知识,希望对你有一定的参考价值。
首先下载 mysql57-community-release-el7-11.noarch.rpm
Dockerfile
FROM hub.c.163.com/library/centos:latest MAINTAINER zhenweilai <181282945@qq.com> COPY mysql57-community-release-el7-11.noarch.rpm /usr/local RUN cd /usr/local && yum localinstall -y mysql57-community-release-el7-11.noarch.rpm && yum install -y mysql-community-server COPY my.cnf /etc RUN mysqld --initialize-insecure && /usr/sbin/mysqld --daemonize
my.cnf
[mysqld] user=mysql datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock
symbolic-links=0 log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid max_connections=2000 sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
以上是关于mysql 5.7 docker file的主要内容,如果未能解决你的问题,请参考以下文章