微服务-基于Docker安装Sentinel

本文介绍了如何使用Docker拉取并运行SentinelDashboard1.8.0版本的镜像,创建容器,并设置端口映射。之后,可以通过指定的虚拟机IP和端口号访问SentinelDashboard,其默认账号和密码均为sentinel。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

目录

1、拉取Sentinel镜像

2、构建Sentinel容器 

3、访问Sentinel


1、拉取Sentinel镜像

代码:

docker pull bladex/sentinel-dashboard:1.8.0

实例:

root@localhost howlong]# docker pull bladex/sentinel-dashboard:1.8.0
1.8.0: Pulling from bladex/sentinel-dashboard
169185f82c45: Pull complete 
4346af5b5a4f: Pull complete 
071ce1b99999: Pull complete 
feb8a653dea6: Pull complete 
Digest: sha256:feaae3ddd2c68c4b36164b2b7d7de553198390a9710b9de99737bb238be18ad8
Status: Downloaded newer image for bladex/sentinel-dashboard:1.8.0
docker.io/bladex/sentinel-dashboard:1.8.0
root@localhost howlong]#


2、构建Sentinel容器 

代码:

docker run --name sentinel -p 8858:8858 --ulimit nofile=1024 -d bladex/sentinel-dashboard:1.8.0

实例:

[root@localhost howlong]# docker run --name sentinel -p 8858:8858 --ulimit nofile=1024 -d bladex/sentinel-dashboard:1.8.0
6fc113e9c8e0d8e13ea7c896999465f88bf2778db2e1f943d498a89224e9619a
[root@localhost howlong]#


3、访问Sentinel

        打开游览器,访问 http://虚拟机IP:Sentinel服务端口号

        即可访问服务,默认账号和密码都是:sentinel

例如:

http://192.168.27.129:8858

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值