docker安装 zookeeper, dubbo-admin

1 . 环境:

  • cenos7(X86_64) + openssh

2 . 安装

  • 配置镜像加速器, 尝试从Docker Hub下载, 速度太慢

    /etc/docker/daemon.json

     {
        "max-concurrent-downloads":1,
        "registry-mirrors": [
           "https://hub-mirror.c.163.com",
           "https://mirror.baidubce.com"
        ]
     }
    
  • 抓取zookeeper镜像
    docker pull zookeeper
    
  • 抓取dubbo-admin镜像
    docker pull apache/dubbo-admin
    
  • 启动zookeeper容器
    docker run --name zookeeper -p 2181:2181 -d zookeeper
    
  • 启动duboo-admin容器
    docker run -d \
    -p 8081:8080 \
    -e dubbo.registry.address=zookeeper://192.168.37.201:2181 \
    -e dubbo.admin.root.password=root \
    -e dubbo.admin.guest.password=guest \
    apache/dubbo-admin
    
  • 验证

    浏览器输入

    http://192.168.37.201:8081/
    

参考及引用

http://blog.csdn.net/zxl8899/article/details/107413063
Photo by Steve Johnson from Pexels

Comments are closed.