docker run --rm -ti -e CLUSTER_NAME=test -e MYSQL_ALLOW_EMPTY_PASSWORD=1 --entrypoint="bash" -v `pwd`:/test percona/percona-xtradb-cluster:5.6.36
setsid /usr/bin/mysqld_safe --wsrep-new-cluster
rm -rf /etc/mysql/my.cnf && cp my.cnf /etc
show global status like
'wsrep%'
;
python /usr/local/bin/manage.py
python /usr/local/bin/manage.py init_db
mysqld --console --log-bin=mysql-bin --log_slave_updates=ON --wsrep-new-cluster
sed -i '$d' /etc/my.cnf && sed -i '$a wsrep_cluster_address = gcomm://172.17.0.4,172.17.0.3' /etc/my.cnf