1.创建本地的my.cnf文件
!include /etc/mysql/node.cnf
!includedir /etc/my.cnf.d/
!includedir /etc/percona-xtradb-cluster.conf.d/
[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
2.创建Dockerfile
vim Dockerfile
FROM pxc:latest
MAINTAINER Fisher "lvxiaokai@aliyun.com"
COPY ./my.cnf /etc/
3.开始构建本地镜像
docker build -t pxc2 .
网友评论