docker 快速安装dubbo-admin

查看dubbo-admin镜像

docker search dubbo-admin

docker 快速安装dubbo-admin_第1张图片
拉取前后端分离的dubbo-admin

docker pull cao2068959/dubbo-admin:2.7

docker 快速安装dubbo-admin_第2张图片
查看镜像

docker images

在这里插入图片描述

创建目录

mkdir -p /user/dubbo-admin
cd /user/dubbo-admin

编写properties文件

vi myapplication.properties

配置文件内容

admin.registry.address=zookeeper://192.168.130.128:2181
admin.config-center=zookeeper://192.168.130.128:2181
admin.metadata-report.address=zookeeper://192.168.130.128:2181
admin.registry.group=dubbo
admin.apollo.token=e16e5cd903fd0c97a116c873b448544b9d086de9
admin.apollo.appId=test
admin.apollo.env=dev
admin.apollo.cluster=default
admin.apollo.namespace=dubbo

启动容器

docker run -d -p 8080:8080 -v /usr/dubbo-admin/myapplication.properties:/dubbo-admin/myapplication.properties cao2068959/dubbo-admin:2.7

查看是否启动成功

docker ps

docker 快速安装dubbo-admin_第3张图片

浏览器访问http://192.168.130.128:8080/(我的虚拟机ip地址,admin端口号为8080)
docker 快速安装dubbo-admin_第4张图片

你可能感兴趣的:(dubbo,docker,centos,dubbo,dubbo-admin)