# Docker 部署（推荐）

> 使用 Docker 部署 NPS 服务端或 NPC 客户端

---

LLMS 索引： [llms.txt](/llms.txt)

---

**服务端**

先拉取镜像：

```shell
docker pull yisier1/nps
```

启动容器，请把 `<本机conf目录>` 替换为实际路径（例如 `/root/nps/conf`）：

```shell
docker run -d \
  --restart=always \
  --name nps \
  --net=host \
  -v <本机conf目录>:/conf \
  -v /etc/localtime:/etc/localtime:ro \
  yisier1/nps
```

**客户端**

先拉取镜像：

```shell
docker pull yisier1/npc
```

启动容器，请把 `<>` 内的值替换为实际配置：

```shell
docker run -d \
  --restart=always \
  --name <自定义名称> \
  --net=host \
  yisier1/npc \
  -server=<服务端IP:端口> \
  -vkey=<客户端验证密钥>
```

镜像主页：[NPS](https://hub.docker.com/r/yisier1/nps) ｜ [NPC](https://hub.docker.com/r/yisier1/npc)。
