pxc搭建mysql集群
docker -y update
yum install -y docker
service docker satrt
docker images
服务器:curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
vi /etc/docker/daemon.json 去掉逗号
docker save docker.io/java > /home/java.tar.gz
docker load < /home/java.tag.gz
docker pull percona/percona-xtradb-cluster
docker search java
docker pull docker.io/java
docker run -it -p 9000:8000 -p 9001:8085 -v /home/project:/soft --privileged --name myjava docker.io/java bash
javac or java -version
docker tag docker.io/percona/percona-xtradb-cluster pxc
docker rmi docker.io/percona/percona-xtradb-cluster
firewall-cmd --permanent --add-port=3306-3310/tcp
******************************************************************************************************************************
创建内部网络
******************************************************************************************************************************
docker network create --subnet=172.18.0.0/24 net1
docker inspect net1
docker network rm net 删除网段
创建docker 卷
docker volume create --name v1
查看v1 路径
docker inspect v1
删除volume
docker volume rm v1
创建pxc容器
防火墙查看
systemctl status firewalld
systemctl stop firewalld