2022-04-20 21:36:57 +02:00
|
|
|
|
---
|
|
|
|
|
title: 群晖
|
|
|
|
|
weight: 22
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
本手册基于DSM v6。
|
|
|
|
|
|
|
|
|
|
### 安装Docker
|
|
|
|
|
|
|
|
|
|
打开 package manager 并安装 docker
|
|
|
|
|
|
|
|
|
|
| | |
|
|
|
|
|
| --------------- | -------------------------------------------------------- |
|
2023-01-16 19:54:22 +01:00
|
|
|
|
 | 
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 安装 RustDesk Server
|
|
|
|
|
|
|
|
|
|
| 在 Docker's registery 里搜索 rustdesk-server 并双击安装 | 安装 rustdesk-server 镜像后, 双击镜像创建容器 |
|
|
|
|
|
| --------------- | -------------------------------------------------------- |
|
2023-01-16 19:54:22 +01:00
|
|
|
|
 | 
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 创建 hbbs 容器
|
|
|
|
|
|
|
|
|
|
如上所述哦,双击 rustdesk-server 镜像创建新容器,设置名称 `hbbs`。
|
2023-01-16 19:54:22 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
点击上面的 "Advanced Settings"。
|
|
|
|
|
|
|
|
|
|
- 开启 auto-restart
|
2023-01-16 19:54:22 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2022-04-20 21:42:25 +02:00
|
|
|
|
- 开启 "Use the same network as Docker host", 关于 host net的更多解释,请[查看](/docs/zh-cn/self-host/install/#net-host)
|
2023-01-16 19:54:22 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2022-05-17 07:36:24 +02:00
|
|
|
|
- 将容器里的 home 目录 `/root` 挂在到宿主目录(比如 `Shared/test/`), hbbs将把产生的文件(包括`key`文件)放在该目录。
|
2022-04-20 21:36:57 +02:00
|
|
|
|
| 挂在 | 产生的文件 |
|
|
|
|
|
|-- | -- |
|
2023-01-16 19:54:22 +01:00
|
|
|
|
 | 
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
- 设置命令
|
|
|
|
|
{{% notice note %}}
|
2023-01-16 19:54:22 +01:00
|
|
|
|
Synology 的操作系统是基于 Debian 的,因此host net (--net=host) 可以正常工作,我们不需要使用 `-p` 选项映射端口。
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
`192.168.16.98`为内网ip,此处仅作演示,部署时请设置为公网ip。
|
|
|
|
|
|
|
|
|
|
{{% /notice %}}
|
|
|
|
|
|
2023-01-16 19:54:22 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
- 搞定
|
|
|
|
|
|
2023-01-16 19:54:22 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
### 创建 hbbr 容器
|
|
|
|
|
|
2022-05-22 15:40:31 +02:00
|
|
|
|
请重复上述 `hbbs` 步骤,请将容器名更改为 `hbbr` 并将命令更改为 `hbbr`。
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-01-16 19:54:22 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
### hbbr/hbbs 容器创建完成
|
|
|
|
|
|
2023-01-16 19:54:22 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 双击容器并查看日志 | 确认 hbbs/hbbr 在使用 host net |
|
|
|
|
|
|-- | -- |
|
2023-01-16 19:54:22 +01:00
|
|
|
|
 | 
|