yum -y update yum install -y docker
service docker start service docker stop service docker restart
docker加速器 curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://abcd1234.m.daocloud.io
vi /etc/docker/daemon.json 去掉逗号
docker search java
docker pull docker.io/java
docker images
docker save docker.io/java > /home/java.tar.gz
docker rmi docker.io/java
docker load < /home/java.tar.gz
docker run -it -p 9000:8080 -v /home/project:/soft/ --privileged --name wxy xx bash
pxc集群 https://blog.csdn.net/qq_39409110/article/details/82286198
docker pull percona/percona-xtradb-cluster docker tag docker.io/percona/percona-xtradb-cluster pxc docker network create --subnet=172.18.0.0/24 net1 docker volume create v1 docker run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=abc123456 -e CLUSTER_NAME=PXC -e XTRABACKUP_PASSWORD=abc123456 -v v1:/var/lib/mysql --privileged --name=node1 --net=net1 --ip=172.18.0.2 pxc
docker run -d -p 3307:3306 -e MYSQL_ROOT_PASSWORD=abc123456 -e CLUSTER_NAME=PXC -e XTRABACKUP_PASSWORD=abc123456 -e CLUSTER_JOIN=node1 -v v2:/var/lib/mysql --privileged --name=node2 --net=net1 --ip=172.18.0.3 pxc
负载均衡 docker pull haproxy