1. 镜像拉取

docker pull microsoft/service-fabric-onebox
2. 配置docker(daemon.json)
{
"ipv6": true,
"fixed-cidr-v6": "fd00::/64"
}
3. 启动镜像
docker run -itd -p 19080:19080 --name sfonebox microsoft/service-fabric-onebox
4. 使用交互式运行,配置集群
docker exec -it sfonebox bash

./setup.sh
./run.sh 备注:等待比较长的时间的下载serviec fabric 就可启动了
5. 查看资源管理界面
6. Service Fabric CLI 安装(python3)
pip3 install sfctl
7. Service Fabric CLI  使用
a. 选择集群

sfctl cluster select --endpoint http://localhost:19080

b. 集群状态信息查看

sfctl cluster health

输出信息

{
"additionalProperties": {},
"aggregatedHealthState": "Ok",
"applicationHealthStates": [
{
"additionalProperties": {},
"aggregatedHealthState": "Ok",
"name": "fabric:/System"
}
],
"healthEvents": [],
"healthStatistics": {
"additionalProperties": {},
"healthStateCountList": [
{
"additionalProperties": {},
"entityKind": "Node",
"healthStateCount": {
"additionalProperties": {},
"errorCount": 0,
"okCount": 3,
"warningCount": 0
}
},
{
"additionalProperties": {},
"entityKind": "Application",
"healthStateCount": {
"additionalProperties": {},
"errorCount": 0,
"okCount": 0,
"warningCount": 0
}
},
{
"additionalProperties": {},
"entityKind": "Service",
"healthStateCount": {
"additionalProperties": {},
"errorCount": 0,
"okCount": 0,
"warningCount": 0
}
},
{
"additionalProperties": {},
"entityKind": "Partition",
"healthStateCount": {
"additionalProperties": {},
"errorCount": 0,
"okCount": 0,
"warningCount": 0
}
},
{
"additionalProperties": {},
"entityKind": "Replica",
"healthStateCount": {
"additionalProperties": {},
"errorCount": 0,
"okCount": 0,
"warningCount": 0
}
},
{
"additionalProperties": {},
"entityKind": "DeployedApplication",
"healthStateCount": {
"additionalProperties": {},
"errorCount": 0,
"okCount": 0,
"warningCount": 0
}
},
{
"additionalProperties": {},
"entityKind": "DeployedServicePackage",
"healthStateCount": {
"additionalProperties": {},
"errorCount": 0,
"okCount": 0,
"warningCount": 0
}
}
]
},
"nodeHealthStates": [
{
"additionalProperties": {},
"aggregatedHealthState": "Ok",
"id": {
"additionalProperties": {},
"id": "b9d52c016a15a8f57673d3b8041e2d35"
},
"name": "N0030"
},
{
"additionalProperties": {},
"aggregatedHealthState": "Ok",
"id": {
"additionalProperties": {},
"id": "c2e9eff19761acc9924422c53c8943d0"
},
"name": "N0010"
},
{
"additionalProperties": {},
"aggregatedHealthState": "Ok",
"id": {
"additionalProperties": {},
"id": "cf68563e16a44f808e86197a9cf83de5"
},
"name": "N0020"
}
],
"unhealthyEvaluations": []
}
8. cli 命令大全
Service Fabric Command Line
application: Create, delete, and manage applications and application types.
chaos : Start, stop and report on the chaos test service.
cluster : Select, manage and operate Service Fabric clusters.
compose : Create, delete and manage Docker Compose applications.
is : Query and send commands to the infrastructure service.
node : Manage the nodes that form a cluster.
partition : Query and manage partitions for any service.
property : Store and query properties under Service Fabric names.
replica : Manage the replicas that belong to service partitions.
rpm : Query and send commands to the repair manager service.
sa-cluster : Manage stand-alone Service Fabric clusters.
service : Create, delete and manage service, service types and service packages.
store : Perform basic file level operations on the cluster image store.
9. 参考资料
https://docs.microsoft.com/zh-cn/azure/service-fabric/service-fabric-get-started-mac
 
 
 
 

service fabric docker 安装的更多相关文章

  1. 如何在本地数据中心安装Service Fabric for Windows集群

    概述 首先本文只是对官方文档(中文,英文)的一个提炼,详细的安装说明还请仔细阅读官方文档. 虽然Service Fabric的官方名称往往被加上Azure,但是实际上(估计很多人不知道)Service ...

  2. 【Service Fabric】小白入门记录 本地Service Fabric集群安装及设置

    本篇内容是自学自记,现在我还不知道Service Fabric究竟是怎么个入门法,反正按照入门教程先进行本地Service Fabric集群的安装,万里路始于足下,要学习总得先把环境装好了才能开始学习 ...

  3. 微服务之Service Fabric 系列 (一):概览、环境安装

    参考 微软官方文档  service fabric 百家号   大话微服务架构之微服务框架微软ServiceFabric正式开源 一.概述 1.概念 Azure Service Fabric 是一款分 ...

  4. docker安装完报错:Failed to start docker.service: Unit docker.service is masked

    执行 systemctl start docker 报错 Failed to start docker.service: Unit docker.service is masked. 解决 syste ...

  5. Service Fabric是什么?

    题记:鉴于社区对Service Fabric有诸多误解,希望借本文能让大家正确了解Service Fabric是一个什么东西,算是给其正名. 术语与分类 Service Fabric不仅仅是容器编排器 ...

  6. 如何把遗留的Java应用托管在Service Fabric中

    一.概述 众所周知,微服务化尤其对遗留系统进行微服务化一般采用"Lift and Shift"的模式进行. Service Fabric作为一个微服务托管平台,不仅仅可以在上面跑. ...

  7. Azure Service Fabric 开发环境搭建

    微服务体系结构是一种将服务器应用程序构建为一组小型服务的方法,每个服务都按自己的进程运行,并通过 HTTP 和 WebSocket 等协议相互通信.每个微服务都在特定的界定上下文(每服务)中实现特定的 ...

  8. 理解Docker(1):Docker 安装和基础用法

    本系列文章将介绍Docker的有关知识: (1)Docker 安装及基本用法 (2)Docker 镜像 (3)Docker 容器的隔离性 - 使用 Linux namespace 隔离容器的运行环境 ...

  9. docker安装

    系统要求:需要一个64位的centos7操作系统和版本3.10或更高版本的Linux内核 开始安装: uname -r   //查看内核版本yum -y update //更新系统更新到最新 #安装d ...

随机推荐

  1. form组件的验证

    django 的form组件可以实现自定义的验证规则. 创建基于Form的类,在类中创建字段,定义规则. 创建该类的对象,并将待验证的数据传入,使用is_valid()函数. is_valid()函数 ...

  2. 如何使用POST 方法调用服务

    一.WCF REST专用POST方法 1.1.        建立WCF REST 方法 [ServiceContract] public interface IBookingBizService { ...

  3. Windows 系统cmd设置添加静态路由方式

    电脑上添加静态路由,cmd设置路由 方法/步骤 1.首先在“运行”窗口输入cmd(按WIN+R打开运行窗口),然后回车进入命令行,输入 route  add  10.253.251.0  mask   ...

  4. vue中element 的上传功能

    element 的上传功能 最近有个需求,需要在上传文件前,可以进行弹窗控制是否上传upload 看完文档后,感觉有两种思路可以实现 基于before-upload :上传文件之前的钩子,参数为上传的 ...

  5. qt 音乐播放器

    https://blog.csdn.net/zyx_0604/article/details/66974048?fps=1&locationNum=14 https://blog.csdn.n ...

  6. 2018.11.16 RX- IC

    1. IC内部组成: Reference Oscillator:基准参考晶振-后续会放大32 倍 Comparator:比较器,输出RF信号 control logic:控制晶振倍频,控制LF,pow ...

  7. html 实体和htmlspecialchars()

    HTML 中的预留字符必须被替换为字符实体. HTML 实体 在 HTML 中,某些字符是预留的. 在 HTML 中不能使用小于号(<)和大于号(>),这是因为浏览器会误认为它们是标签. ...

  8. linux 下 iscsi的简单使用

      一.准备工作 1.1.(服务端和客户端都需要设置) 系统使用的是CentOS6.8 禁用防火墙: 查看状态:# service iptables status 停止:# systemctl sto ...

  9. 循环中的let和const声明

    一.循环中的let声明 每次循环的时候let声明都会创建一个新变量i,并将其初始化为i的当前值,所以循环内部创建的每个函数都能得到属于他们的i的副本. 最初的: for (var i = 0 ; i ...

  10. EasyPlayer Android基于ffmpeg实现播放(RTSP/RTMP/HTTP/HLS)同步录像功能

    之前有博客专门介绍了EasyPlayer的本地录像的功能,简单来说,EasyPlayer是一款RTSP播放器,它将RTSP流里的音视频媒体帧解析出来,并用安卓系统提供的MediaMuxer类进行录像. ...