doc/笔记/饥荒联机版专用服务器 For Docker-ji-hu...

53 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 饥荒联机版专用服务器 For Docker
date: 2023-08-19 17:52:04.122
updated: 2023-08-19 17:59:59.353
url: /archives/ji-huang-lian-ji-ban-zhuan-yong-fu-wu-qi-fordocker
categories:
- Docker
tags:
- Docker
---
> 原作者https://github.com/hujinbo23/dst-admin-go
拉取镜像
```shell
docker pull hujinbo23/dst-admin-go:1.1.8
```
## 启动容器
启动容器命令我修改了一下加了一个容器name和映射路径方便查看游戏文件
```shell
docker run -v ${HOME}/.klei/DoNotStarveTogether:/root/.klei/DoNotStarveTogether --name Cluster -d -p 8082:8082 hujinbo23/dst-admin-go:1.1.8
```
查看安装日志
```
docker logs -f --tail 100 Cluster
```
## 访问控制台面板
IP:8082
## 修改系统设置
我修改后的本地映射路径为:/root/.klei/DoNotStarveTogether
所以系统设置中对应的路径要进行修改,游戏启动后可以在此路径查看游戏存档文件
```
游戏备份路径
/root/.klei/DoNotStarveTogether
mod下载路径
/root/.klei/DoNotStarveTogether
服务器文件夹名
Cluster_1
```
如图所示
![](http://img.qweraq.com/imgs/202308191750955.png)
其它设置请自定义