docker容器创建命令

docker run --name=mysql8-slave --hostname=mysql8-slave --env=MYSQL_ROOT_PASSWORD=Aa441510 --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=GOSU_VERSION=1.12 --env=MYSQL_MAJOR=8.0 --env=MYSQL_VERSION=8.0.20-1debian10 --volume=/data/mysql8/mysql-slave/data:/var/lib/mysql --volume=/data/mysql8/mysql-slave/mysql-files:/var/lib/mysql-files --volume=/data/mysql8/mysql-slave/conf:/etc/mysql --volume=/data/mysql8/mysql-slave/logs:/var/log/mysql --volume=/var/lib/mysql --network=macvlan_net --privileged --restart=no --detach=true -t mysql:8.0 --lower_case_table_names=1

docker run --name=mysql8-master --hostname=mysql8-master --env=MYSQL_ROOT_PASSWORD=Aa441510 --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=GOSU_VERSION=1.12 --env=MYSQL_MAJOR=8.0 --env=MYSQL_VERSION=8.0.20-1debian10 --volume=/data/mysql8/mysql-master/mysql-files:/var/lib/mysql-files --volume=/data/mysql8/mysql-master/conf:/etc/mysql --volume=/data/mysql8/mysql-master/logs:/var/log/mysql --volume=/data/mysql8/mysql-master/data:/var/lib/mysql --volume=/var/lib/mysql --network=macvlan_net --privileged --restart=no --detach=true -t mysql:8.0 --lower_case_table_names=1

docker run --name=demo-server-12 --hostname=demo-server-12 --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --volume=/data/share:/tmp --network=macvlan_net --privileged --restart=no --label org.label-schema.schema-version="1.0" --label org.label-schema.license="GPLv2" --label org.label-schema.vendor="CentOS" --label org.label-schema.build-date="20191024" --label org.label-schema.name="CentOS Base Image" --detach=true -t centos:centos7.7.1908 /usr/sbin/init

docker run --name=nexus-server --hostname=nexus-server --user=nexus --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=container=oci --env=SONATYPE_DIR=/opt/sonatype --env=NEXUS_HOME=/opt/sonatype/nexus --env=NEXUS_DATA=/nexus-data --env=NEXUS_CONTEXT= --env=SONATYPE_WORK=/opt/sonatype/sonatype-work --env=DOCKER_TYPE=rh-docker --env='INSTALL4J_ADD_VM_PARAMS=-Xms1200m -Xmx1200m -XX:MaxDirectMemorySize=2g -Djava.util.prefs.userRoot=/nexus-data/javaprefs' --volume=/nexus-data --network=macvlan_net --restart=no --label description="The Nexus Repository Manager server           with universal support for popular component formats." --label stop="docker stop NAME" --label com.redhat.build-host="cpt-1007.osbs.prod.upshift.rdu2.redhat.com" --label vendor="Sonatype" --label com.sonatype.license="Apache License, Version 2.0" --label io.k8s.display-name="Nexus Repository Manager" --label com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" --label vcs-type="git" --label summary="The Nexus Repository Manager server           with universal support for popular component formats." --label com.sonatype.name="Nexus Repository Manager base image" --label com.redhat.component="ubi8-container" --label version="3.23.0-03" --label io.openshift.tags="Sonatype,Nexus,Repository Manager" --label release="3.23.0" --label io.openshift.expose-services="8081:8081" --label run="docker run -d --name NAME           -p 8081:8081           IMAGE" --label url="https://sonatype.com" --label build-date="2020-04-23T05:17:02.390472" --label architecture="x86_64" --label distribution-scope="public" --label name="Nexus Repository Manager" --label io.k8s.description="The Nexus Repository Manager server           with universal support for popular component formats." --label maintainer="Sonatype " --label vcs-ref="2f70d2e5b96ea67813c0f06b74a23775a118e7db" --detach=true -t sonatype/nexus3:latest sh -c ${SONATYPE_DIR}/start-nexus-repository-manager.sh

docker run --name=rmqbroker-a --hostname=rmqbroker-a  --user=rocketmq --env=TZ=Asia/Shanghai --env=NAMESRV_ADDR=rmqnamesrv-a:9876 --env='JAVA_OPTS= -Duser.home=/opt' --env='JAVA_OPT_EXT=-server -Xms256m -Xmx256m -Xmn256m' --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=ROCKETMQ_VERSION=4.3.0 --env=ROCKETMQ_HOME=/opt/rocketmq-4.3.0 --volume=/data/rocketmq/broker-a/broker-a.conf:/opt/rocketmq-4.3.0/conf/broker.conf:rw --volume=/data/rocketmq/store/broker-a:/opt/store:rw --volume=/data/rocketmq/logs/broker-a:/opt/logs:rw --volume=/opt/rocketmq-4.3.0/conf/broker.conf --volume=/opt/store --volume=/opt/logs --network=macvlan_net --label com.docker.compose.project="rocketmq" --label com.docker.compose.container-number="1" --label org.label-schema.vendor="CentOS" --label org.label-schema.license="GPLv2" --label org.label-schema.build-date="20190305" --label com.docker.compose.oneoff="False" --label org.label-schema.schema-version="1.0" --label com.docker.compose.config-hash="5f10553a36d407581fcb28ef0723b949b0e438aa9cf0c62cee014e97c1cb2edb" --label com.docker.compose.service="rmqbroker-a" --label com.docker.compose.version="1.25.0-rc4" --label com.docker.compose.project.config_files="docker-compose.yml" --label org.label-schema.name="CentOS Base Image" --label com.docker.compose.project.working_dir="/data/rocketmq" --detach=true rocketmqinc/rocketmq:4.3.0 sh mqbroker -c /opt/rocketmq-4.3.0/conf/broker.conf autoCreateTopicEnable=true &

docker run --name=rmqbroker-b --hostname=rmqbroker-b --user=rocketmq --env=TZ=Asia/Shanghai --env=NAMESRV_ADDR=rmqnamesrv-b:9876 --env='JAVA_OPTS= -Duser.home=/opt' --env='JAVA_OPT_EXT=-server -Xms256m -Xmx256m -Xmn256m' --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=ROCKETMQ_VERSION=4.3.0 --env=ROCKETMQ_HOME=/opt/rocketmq-4.3.0 --volume=/data/rocketmq/logs/broker-b:/opt/logs:rw --volume=/data/rocketmq/store/broker-b:/opt/store:rw --volume=/data/rocketmq/broker-b/broker-b.conf:/opt/rocketmq-4.3.0/conf/broker.conf:rw --volume=/opt/rocketmq-4.3.0/conf/broker.conf --volume=/opt/store --volume=/opt/logs --network=macvlan_net -p 10909:10909 --label com.docker.compose.config-hash="e5194a22faf56fbc66b851c3f4802ce288919449f880bc64f14cf2af3e10f762" --label org.label-schema.name="CentOS Base Image" --label org.label-schema.vendor="CentOS" --label org.label-schema.license="GPLv2" --label com.docker.compose.project="rocketmq" --label org.label-schema.build-date="20190305" --label com.docker.compose.oneoff="False" --label org.label-schema.schema-version="1.0" --label com.docker.compose.container-number="1" --label com.docker.compose.version="1.25.0-rc4" --label com.docker.compose.project.config_files="docker-compose.yml" --label com.docker.compose.project.working_dir="/data/rocketmq" --label com.docker.compose.service="rmqbroker-b" --detach=true rocketmqinc/rocketmq:4.3.0 sh mqbroker -c /opt/rocketmq-4.3.0/conf/broker.conf autoCreateTopicEnable=true &

docker run --name=rmqnamesrv-a --hostname=rmqnamesrv-a --user=rocketmq --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=ROCKETMQ_VERSION=4.3.0 --env=ROCKETMQ_HOME=/opt/rocketmq-4.3.0 --volume=/data/rocketmq/store/nameserver-a:/opt/store:rw --volume=/data/rocketmq/logs/nameserver-a:/opt/logs:rw --volume=/opt/store --volume=/opt/logs --network=macvlan_net --label com.docker.compose.project="rocketmq" --label com.docker.compose.container-number="1" --label com.docker.compose.service="rmqnamesrv-a" --label com.docker.compose.config-hash="b00e010bbde706404fd5bb9ac740c70b970b8263e9c302abc1d2f25448f4df2c" --label org.label-schema.license="GPLv2" --label org.label-schema.vendor="CentOS" --label org.label-schema.build-date="20190305" --label com.docker.compose.oneoff="False" --label org.label-schema.schema-version="1.0" --label com.docker.compose.version="1.25.0-rc4" --label com.docker.compose.project.config_files="docker-compose.yml" --label org.label-schema.name="CentOS Base Image" --label com.docker.compose.project.working_dir="/data/rocketmq" --detach=true rocketmqinc/rocketmq:4.3.0 sh mqnamesrv

docker run --name=rmqconsole --hostname=rmqconsole --env='JAVA_OPTS=-Drocketmq.namesrv.addr=rmqnamesrv-a:9876;rmqnamesrv-b:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false' --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=LANG=C.UTF-8 --env=JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 --env=JAVA_VERSION=8u111 --env='JAVA_DEBIAN_VERSION=8u111-b14-2~bpo8+1' --env=CA_CERTIFICATES_JAVA_VERSION=20140324 --volume=/tmp --network=macvlan_net --label com.docker.compose.project="rocketmq" --label com.docker.compose.oneoff="False" --label com.docker.compose.service="rmqconsole" --label com.docker.compose.config-hash="b840adaf4e17a912a6d2077806670d9decd050129c5e3db24eb44cf61ab36555" --label com.docker.compose.version="1.25.0-rc4" --label com.docker.compose.project.config_files="docker-compose.yml" --label com.docker.compose.container-number="1" --label com.docker.compose.project.working_dir="/data/rocketmq" --detach=true styletang/rocketmq-console-ng

docker run --name=rmqnamesrv-b --hostname=rmqnamesrv-b --user=rocketmq --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=ROCKETMQ_VERSION=4.3.0 --env=ROCKETMQ_HOME=/opt/rocketmq-4.3.0 --volume=/data/rocketmq/logs/nameserver-b:/opt/logs:rw --volume=/data/rocketmq/store/nameserver-b:/opt/store:rw --volume=/opt/store --volume=/opt/logs --network=macvlan_net --label org.label-schema.license="GPLv2" --label com.docker.compose.project="rocketmq" --label com.docker.compose.container-number="1" --label org.label-schema.vendor="CentOS" --label com.docker.compose.service="rmqnamesrv-b" --label com.docker.compose.config-hash="4132fdbb85edcac4a32c6a350839443318fc1e84dbb516e48c14d87b1ee5f9e9" --label org.label-schema.build-date="20190305" --label com.docker.compose.oneoff="False" --label org.label-schema.schema-version="1.0" --label com.docker.compose.version="1.25.0-rc4" --label com.docker.compose.project.config_files="docker-compose.yml" --label org.label-schema.name="CentOS Base Image" --label com.docker.compose.project.working_dir="/data/rocketmq" --detach=true rocketmqinc/rocketmq:4.3.0 sh mqnamesrv

docker run --name=nacos3 --hostname=nacos3 --env='NACOS_SERVERS=192.168.0.91:8848 192.168.0.92:8848 192.168.0.93:8848' --env=MYSQL_SERVICE_HOST=mysql --env=MYSQL_SERVICE_DB_NAME=nacos_devtest --env=MYSQL_SERVICE_PORT=3306 --env=MYSQL_SERVICE_USER=nacos --env=MYSQL_SERVICE_PASSWORD=nacos --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=MODE=cluster --env=PREFER_HOST_MODE=ip --env=BASE_DIR=/home/nacos --env=CLASSPATH=.:/home/nacos/conf: --env=CLUSTER_CONF=/home/nacos/conf/cluster.conf --env=FUNCTION_MODE=all --env=JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk --env=NACOS_USER=nacos --env=JAVA=/usr/lib/jvm/java-1.8.0-openjdk/bin/java --env=JVM_XMS=2g --env=JVM_XMX=2g --env=JVM_XMN=1g --env=JVM_MS=128m --env=JVM_MMS=320m --env=NACOS_DEBUG=n --env=TOMCAT_ACCESSLOG_ENABLED=false --env=TIME_ZONE=Asia/Shanghai --volume=/data/nacos/nacos-docker/example/cluster-logs/nacos2:/home/nacos/logs:rw --volume=/home/nacos/logs --network=macvlan_net --restart=always --label com.docker.compose.project.working_dir="/data/nacos/nacos-docker/example" --label com.docker.compose.project="example" --label org.label-schema.schema-version="= 1.0     org.label-schema.name=CentOS Base Image     org.label-schema.vendor=CentOS     org.label-schema.license=GPLv2     org.label-schema.build-date=20180531" --label com.docker.compose.service="nacos3" --label com.docker.compose.project.config_files="example/cluster-ip.yaml" --label com.docker.compose.oneoff="False" --label com.docker.compose.version="1.25.0-rc4" --label com.docker.compose.config-hash="8fa0deb5204f76eee14174c228e0534368f1528ede633b968cf061fdde3469df" --label com.docker.compose.container-number="1" --detach=true nacos/nacos-server:latest

docker run --name=nacos2 --hostname=nacos2 --env='NACOS_SERVERS=192.168.0.91:8848 192.168.0.92:8848 192.168.0.93:8848' --env=MYSQL_SERVICE_HOST=mysql --env=MYSQL_SERVICE_DB_NAME=nacos_devtest --env=MYSQL_SERVICE_PORT=3306 --env=MYSQL_SERVICE_USER=nacos --env=MYSQL_SERVICE_PASSWORD=nacos --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=MODE=cluster --env=PREFER_HOST_MODE=ip --env=BASE_DIR=/home/nacos --env=CLASSPATH=.:/home/nacos/conf: --env=CLUSTER_CONF=/home/nacos/conf/cluster.conf --env=FUNCTION_MODE=all --env=JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk --env=NACOS_USER=nacos --env=JAVA=/usr/lib/jvm/java-1.8.0-openjdk/bin/java --env=JVM_XMS=2g --env=JVM_XMX=2g --env=JVM_XMN=1g --env=JVM_MS=128m --env=JVM_MMS=320m --env=NACOS_DEBUG=n --env=TOMCAT_ACCESSLOG_ENABLED=false --env=TIME_ZONE=Asia/Shanghai --volume=/data/nacos/nacos-docker/example/cluster-logs/nacos2:/home/nacos/logs:rw --volume=/home/nacos/logs --network=macvlan_net --restart=always --label com.docker.compose.project.working_dir="/data/nacos/nacos-docker/example" --label com.docker.compose.project="example" --label org.label-schema.schema-version="= 1.0     org.label-schema.name=CentOS Base Image     org.label-schema.vendor=CentOS     org.label-schema.license=GPLv2     org.label-schema.build-date=20180531" --label com.docker.compose.service="nacos2" --label com.docker.compose.project.config_files="example/cluster-ip.yaml" --label com.docker.compose.oneoff="False" --label com.docker.compose.config-hash="56e68c9a2ce2f33b48b4a750c0df16f09642f2ea0308847377b0f0ce4e761022" --label com.docker.compose.version="1.25.0-rc4" --label com.docker.compose.container-number="1" --detach=true nacos/nacos-server:latest

docker run --name=nacos1 --hostname=nacos1 --env='NACOS_SERVERS=192.168.0.91:8848 192.168.0.92:8848 192.168.0.93:8848' --env=MYSQL_SERVICE_HOST=mysql --env=MYSQL_SERVICE_DB_NAME=nacos_devtest --env=MYSQL_SERVICE_PORT=3306 --env=MYSQL_SERVICE_USER=nacos --env=MYSQL_SERVICE_PASSWORD=nacos --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=MODE=cluster --env=PREFER_HOST_MODE=ip --env=BASE_DIR=/home/nacos --env=CLASSPATH=.:/home/nacos/conf: --env=CLUSTER_CONF=/home/nacos/conf/cluster.conf --env=FUNCTION_MODE=all --env=JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk --env=NACOS_USER=nacos --env=JAVA=/usr/lib/jvm/java-1.8.0-openjdk/bin/java --env=JVM_XMS=2g --env=JVM_XMX=2g --env=JVM_XMN=1g --env=JVM_MS=128m --env=JVM_MMS=320m --env=NACOS_DEBUG=n --env=TOMCAT_ACCESSLOG_ENABLED=false --env=TIME_ZONE=Asia/Shanghai --volume=/data/nacos/nacos-docker/example/cluster-logs/nacos1:/home/nacos/logs:rw --volume=/home/nacos/logs --network=macvlan_net --restart=on-failure --label com.docker.compose.project.working_dir="/data/nacos/nacos-docker/example" --label com.docker.compose.project="example" --label com.docker.compose.container-number="1" --label org.label-schema.schema-version="= 1.0     org.label-schema.name=CentOS Base Image     org.label-schema.vendor=CentOS     org.label-schema.license=GPLv2     org.label-schema.build-date=20180531" --label com.docker.compose.project.config_files="example/cluster-ip.yaml" --label com.docker.compose.oneoff="False" --label com.docker.compose.config-hash="ec5c095776e13d8c73e459771f07fc741032b850728f7749e6357cbcf75b278b" --label com.docker.compose.version="1.25.0-rc4" --label com.docker.compose.service="nacos1" --detach=true nacos/nacos-server:latest

docker run --name=mysql --hostname=mysql --env=MYSQL_ROOT_PASSWORD=root --env=MYSQL_DATABASE=nacos_devtest --env=MYSQL_USER=nacos --env=MYSQL_PASSWORD=nacos --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=GOSU_VERSION=1.7 --env=MYSQL_MAJOR=5.7 --env=MYSQL_VERSION=5.7.26-1debian9 --volume=/data/nacos/nacos-docker/example/mysql:/var/lib/mysql:rw --volume=/var/lib/mysql --network=macvlan_net --label com.docker.compose.project.working_dir="/data/nacos/nacos-docker/example" --label com.docker.compose.project="example" --label com.docker.compose.container-number="1" --label com.docker.compose.project.config_files="example/cluster-ip.yaml" --label com.docker.compose.config-hash="39f2a1adb46abe91f251ef95f7dd825518f50d8fd84ca8a816a0badb48c354b5" --label com.docker.compose.version="1.25.0-rc4" --label com.docker.compose.service="mysql" --label com.docker.compose.oneoff="False" --detach=true nacos/nacos-mysql:5.7 mysqld

docker run --name=centos-server --hostname=centos-server --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --network=macvlan_net --restart=no --label org.label-schema.schema-version="1.0" --label org.label-schema.license="GPLv2" --label org.label-schema.vendor="CentOS" --label org.label-schema.build-date="20191024" --label org.label-schema.name="CentOS Base Image" --detach=true -t 08d05d1d5859 /bin/bash

docker run --name=redis-slave-3 --hostname=redis-slave-3 --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=GOSU_VERSION=1.12 --env=REDIS_VERSION=6.0-rc3 --env=REDIS_DOWNLOAD_URL=https://github.com/antirez/redis/archive/6.0-rc3.tar.gz --env=REDIS_DOWNLOAD_SHA=a81f92ed0aeb2ecab1488ce916725da1283fa86c3ff43828430e77ce8e612534 --volume=/data/redis/redis-slave-3/redis.conf:/etc/redis/redis.conf --volume=/data/redis/redis-slave-3/data:/data --volume=/data/redis/redis-slave-3/log:/log --volume=/data --network=macvlan_net --privileged --restart=no --detach=true -t redis:6.0-rc3 redis-server /etc/redis/redis.conf

docker run --name=redis-slave-2 --hostname=redis-slave-2 --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=GOSU_VERSION=1.12 --env=REDIS_VERSION=6.0-rc3 --env=REDIS_DOWNLOAD_URL=https://github.com/antirez/redis/archive/6.0-rc3.tar.gz --env=REDIS_DOWNLOAD_SHA=a81f92ed0aeb2ecab1488ce916725da1283fa86c3ff43828430e77ce8e612534 --volume=/data/redis/redis-slave-2/data:/data --volume=/data/redis/redis-slave-2/log:/log --volume=/data/redis/redis-slave-2/redis.conf:/etc/redis/redis.conf --volume=/data --network=macvlan_net --privileged --restart=no --detach=true -t redis:6.0-rc3 redis-server /etc/redis/redis.conf

docker run --name=redis-slave-1 --hostname=redis-slave-1 --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=GOSU_VERSION=1.12 --env=REDIS_VERSION=6.0-rc3 --env=REDIS_DOWNLOAD_URL=https://github.com/antirez/redis/archive/6.0-rc3.tar.gz --env=REDIS_DOWNLOAD_SHA=a81f92ed0aeb2ecab1488ce916725da1283fa86c3ff43828430e77ce8e612534 --volume=/data/redis/redis-slave-1/redis.conf:/etc/redis/redis.conf --volume=/data/redis/redis-slave-1/data:/data --volume=/data/redis/redis-slave-1/log:/log --volume=/data --network=macvlan_net --privileged --restart=no --detach=true -t redis:6.0-rc3 redis-server /etc/redis/redis.conf

docker run --name=redis-master-3 --hostname=redis-master-3 --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=GOSU_VERSION=1.12 --env=REDIS_VERSION=6.0-rc3 --env=REDIS_DOWNLOAD_URL=https://github.com/antirez/redis/archive/6.0-rc3.tar.gz --env=REDIS_DOWNLOAD_SHA=a81f92ed0aeb2ecab1488ce916725da1283fa86c3ff43828430e77ce8e612534 --volume=/data/redis/redis-master-3/redis.conf:/etc/redis/redis.conf --volume=/data/redis/redis-master-3/data:/data --volume=/data/redis/redis-master-3/log:/log --volume=/data --network=macvlan_net --privileged --restart=no --detach=true -t redis:6.0-rc3 redis-server /etc/redis/redis.conf

docker run --name=redis-master-2 --hostname=redis-master-2 --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=GOSU_VERSION=1.12 --env=REDIS_VERSION=6.0-rc3 --env=REDIS_DOWNLOAD_URL=https://github.com/antirez/redis/archive/6.0-rc3.tar.gz --env=REDIS_DOWNLOAD_SHA=a81f92ed0aeb2ecab1488ce916725da1283fa86c3ff43828430e77ce8e612534 --volume=/data/redis/redis-master-2/redis.conf:/etc/redis/redis.conf --volume=/data/redis/redis-master-2/data:/data --volume=/data/redis/redis-master-2/log:/log --volume=/data --network=macvlan_net --privileged --restart=no --detach=true -t redis:6.0-rc3 redis-server /etc/redis/redis.conf

docker run --name=redis-master-1 --hostname=redis-master-1 --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=GOSU_VERSION=1.12 --env=REDIS_VERSION=6.0-rc3 --env=REDIS_DOWNLOAD_URL=https://github.com/antirez/redis/archive/6.0-rc3.tar.gz --env=REDIS_DOWNLOAD_SHA=a81f92ed0aeb2ecab1488ce916725da1283fa86c3ff43828430e77ce8e612534 --volume=/data/redis/redis-master-1/redis.conf:/etc/redis/redis.conf --volume=/data/redis/redis-master-1/data:/data --volume=/data/redis/redis-master-1/log:/log --volume=/data --network=macvlan_net --privileged --restart=no --detach=true -t redis:6.0-rc3 redis-server /etc/redis/redis.conf

你可能感兴趣的:(docker)