docker pull daocloud.io/library/redis:5.0-32bit-stretch
docker pull daocloud.io/library/zookeeper:latest
docker pull daocloud.io/library/mysql:latest
docker pull sonatype/nexus3
docker pull portainer/portainer
docker pull wurstmeister/kafka
docker pull webcenter/activemq
portainer
$ docker volume create portainer_data
$ docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
WINDOWS
docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v \\.\pipe\docker_engine:\\.\pipe\docker_engine -v portainer_data:/data portainer/portainer
用chrome打开,配置
redis
docker run -itd --name redis-test -p 6379:6379 redis:5.0-32bit-stretch
mysql
docker run --name mysql --restart=always -p 3306:3306 -v /opt/docker-mysql/conf.d:/etc/mysql/conf.d -v /opt/docker-mysql/var/lib/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d daocloud.io/library/mysql
设置远程登陆 https://blog.csdn.net/qq_38105524/article/details/105011277
zookeeper
docker run --name="zk1" -p 2181:2181 -p 9090:9090 -e ZK_SERVER="zookeeper:2181" -d daocloud.io/library/zookeeper
查看dubbo https://blog.csdn.net/qq_38105524/article/details/105466289
kafka
docker run -d --name kafka --publish 9092:9092 --link zookeeper --env KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 --env KAFKA_ADVERTISED_HOST_NAME=192.168.1.14 --env KAFKA_ADVERTISED_PORT=9092 --volume /etc/localtime:/etc/localtime wurstmeister/kafka:latest
//KAFKA_ZOOKEEPER_CONNECT zookeeper 地址
//KAFKA_ADVERTISED_HOST_NAME kafka主机地址
//KAFKA_ADVERTISED_PORT kafka主机端口
// --volume /etc/localtime:/etc/localtime 同步时间
具体测试https://blog.csdn.net/qq_42595077/article/details/87450034
nexus
//目录
mkdir ~/docker/nexus/nexus-data -p
//权限
chmod 777 ~/docker/nexus/nexus-data
docker run -d -p 8081:8081 --name nexus -v ~/docker/nexus/nexus-data:/nexus-data snoatype/nexus3
nexus 具体https://www.cnblogs.com/wotoufahaiduo/p/11223834.html
activemq
61616是 activemq 的容器使用端口(映射为61617)
8161是 web 页面管理端口(对外映射为8162)
docker run -d --name activemq -p 61617:61616 -p 8162:8161 webcenter/activemq