arkserver

jkread/arkserver Docker Image

这是一个用于运行ARK: Survival Evolved专用服务器的Docker镜像,集成arkmanager工具实现服务器管理,支持自动安装、环境变量配置、持久化存储及定时任务(备份、更新、重启等),适用于快速部署和管理ARK服务器。

下载次数: 0状态:社区镜像维护者:jkread仓库类型:镜像最近更新:
下载命令
点击查看

Thanks for the patience

As of 2021-02-18 :latest is stable and will stay that way. Changes will begin in :dev. Please communicate any issues. Thanks, jkread.

arkserver

Docker image for a dedicated ARK Server with arkmanager.

Overview

This is an image for running an ARK: Survival Evolved server in a Docker container. It uses https://github.com/FezVrasta's https://github.com/FezVrasta/ark-server-tools (ark-server-tools) to managed a single-instance ARK: Survival Evolved server inside a docker container.

For more information on arkmanager, see the repo here: https://github.com/FezVrasta/ark-server-tools

Features

  • Automated install (pull the image and run, no additional commands necessary)
  • Configuration via Environment Variables
  • Easy crontab manipulation for automated backups, updates, daily restarts, weekly dino wipes, etc
  • Simple volume structure for server files, config, logs, backups, etc
  • Inherently includes all features present in arkmanager

Tags

TagDescription
lateststable build
devworking build (not-stable)

Usage

Installing the image

Pull the latest (or any other desired version):

bash
docker pull jkread/arkserver:latest

Running the server

To run a generic server with no configuration modifications:

bash
$ docker run -d \
    -v steam:/home/steam \  # mounted so that workshop (mod) downloads are persisted
    -v ark:/ark \  # mounted as the directory to contain the server/backup/log/config files
    -p 27015:27015 -p 27015:27015/udp \  # steam query port
    -p 7778:7778 -p 7778:7778/udp \  # gameserver port
    -p 7777:7777 -p 7777:7777/udp \ # gameserver port
    jkread/arkserver

Docker compose sample (change or remove environment variables as the suit you):

yaml
version: '3'
volumes:
  ark:
  steam:
services:
  ark:
    image: jkread/arkserver:latest
    container_name: ark
    network_mode: bridge
    restart: always
    ports:
      - 7777:7777
      - 7777:7777/udp
      - 7778:7778
      - 7778:7778/udp
      - 27015:27015
      - 27015:27015/udp
    volumes:
      - ark:/ark
      - steam:/home/steam
    environment:
      - TZ=America/Chicago
      - am_ark_SessionName=Ark Docker Session
      - am_serverMap=TheIsland
      - am_ark_ServerPassword=letmein
      - am_ark_ServerAdminPassword=pleasechangeme
      - am_ark_MaxPlayers=70
      - am_ark_QueryPort=27015
      - am_ark_Port=7778
      - am_ark_RCONPort=32330
      - am_arkwarnminutes=15
      - am_arkAutoUpdateOnStart=true
      - am_arkBackupPreUpdate=true
      - am_arkMaxBackupSizeMB=500
      - am_arkflag_crossplay=false
      - am_arkflag_NoBattlEye=true
      - am_ark_GameModIds=111111111,566885854,731604991,761535755,821530042,889745138,1404697612

If the exposed ports are modified (in the case of multiple containers/servers on the same host) the arkmanager config will need to be modified to reflect the change as well. This is required so that arkmanager can properly check the server status and so that the ARK server itself can properly publish its IP address and query port to steam.

Environment Variables

A set of required environment variables have default values provided as part of the image:

VariableValueDescription
TZN/ATimezone
am_ark_SessionNameArk ServerServer name as it will show on the steam server list
am_serverMapTheIslandGame map to load
am_ark_ServerPasswordN/AServer password to connect
am_ark_ServerAdminPasswordk3yb04rdc4tAdmin password to be used via ingame console or RCON
am_ark_MaxPlayers70Max concurrent players in the game
am_ark_QueryPort27015Steam query port (allows the server to show up on the steam list)
am_ark_Port7778Game server port (allows clients to connect to the server)
am_ark_RCONPort32330RCON port
am_arkwarnminutes15Number of minutes to wait/warn players before updating/restarting
am_arkflag_crossplayfalseAllow crossyplay with Players on Epic
am_arkAutoUpdateOnStart=true--
am_arkBackupPreUpdate=true--
am_arkMaxBackupSizeMB=500--
am_arkflag_crossplayfalseAllow crossyplay with Players on Epic
am_arkflag_NoBattleEyefalseDisable BattleEye
am_ark_GameModIdsN/AList of game mod ids, comma delimited

Adding Additional Variables

Any configuration value that is available via arkmanager can be set using an environment variable. This works by taking any environment variable on the container that is prefixed with am_ and mapping it to the corresponding environment variable in the arkmanager.cfg file.

For a complete list of configuration values available, please see https://github.com/FezVrasta's great documentation here: https://github.com/FezVrasta/ark-server-tools#configuration-files

Volumes

This image has two main volumes that should be mounted as named volumes or host directories for the persistence of the server install and all related configuration files. More information on Docker volumes here: https://docs.docker.com/storage/volumes/

PathDescription
/home/steamDirectory of steam cache and other steamcmd-related files. Should be mounted so that mod installs are persisted between container runs/restarts
/arkDirectory that will contain the server files, config files, logs and backups. More information below

Subdirectories of /ark

Inside the /ark volume there are several directories containing server related files:

PathDescription
/ark/backupLocation of the zipped backups genereated from the arkmaanger backup command. Compressed using bz2.
/ark/configLocation of server config files. You can place customized config files here. AllowedCheaterSteamIDs.txt, Engine.ini, Game.ini, GameUserSettings.ini, crontab
/ark/logLocation of the arkmanager and arkserver log files.
/ark/serverLocation of the server installation performed by steamcmd. This will contain the ShooterGame directory and the actual server binaries.
/ark/stagingDefault directory for staging game and mod updates. Can be changed using in arkmanager.cfg

GameUserSettings.ini

Example GameUserSettings.ini

Your GameUserSettings.ini must contain the following or it will be overwritten:

[/Script/ShooterGame.ShooterGameUserSettings]
Version=5

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 arkserver 镜像标签

docker pull docker.xuanyuan.run/jkread/arkserver:<标签>

DockerHub 原生拉取命令

docker pull jkread/arkserver:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告