Docker部署sentinel Mac Docker 部署 sentinel

Posted 早起的年轻人

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker部署sentinel Mac Docker 部署 sentinel相关的知识,希望对你有一定的参考价值。

1 拉取镜像

docker pull bladex/sentinel-dashboard:1.7.0

2 创建容器

docker run --name sentinel -d  -p 8858:8858  bladex/sentinel-dashboard:1.7.0


在 Docker Desk 客户端中可查看

3 访问

http://localhost:8858/


用户:sentinel
密码:sentinel

springcloud 中 项目启用 sentinel

spring:
  application:
    name: cloudalibaba-sentinel-service
  cloud:
    nacos:
      discovery:
        # Nacos服务注册中心地址
        server-addr: localhost:8848
    sentinel:
      transport:
        # sentinel dashboard 地址
        dashboard: localhost:8858
        # 默认为8719,如果被占用会自动+1,直到找到为止
        #port: 8719
        # 本地机器ip
        #client-ip: 本机ip

以上是关于Docker部署sentinel Mac Docker 部署 sentinel的主要内容,如果未能解决你的问题,请参考以下文章