A Docker image for an ARK: Survival Evolved server using the vanilla SteamCMD, without additional management tools.
Clone the repository:
git clone https://github.com/gordon0907/ark-server.git
cd ark-serverBuild the image:
docker build --tag ark-server:latest .Export the image:
docker save --output ark-server.tar ark-server:latest| Setting | Value |
|---|---|
| Container Name | SteamCMD |
| CPU Priority | High |
| Memory Limit | 4096 MB |
| Volume | /docker/SteamCMD:/home/steam/Steam |
| Network | Host |
| Environment Variables | |
UID |
User ID of the owner of the mounting point (e.g., 1026) |
GID |
Group ID of the owner of the mounting point (e.g., 100) |
Note: SteamCMD Docker currently does not support ARM, but the ARK server can still run if downloaded from another platform in advance.
git clone https://github.com/gordon0907/ark-server.git
cd ark-serverchmod +x *
docker build --tag ark-server:latest .docker run --detach \
--name SteamCMD \
--env UID=501 \
--env GID=20 \
--env TZ=Asia/Hong_Kong \
--publish 7777:7777/udp \
--publish 7778:7778/udp \
--publish 27015:27015/udp \
--volume /Users/gordon/Downloads/SteamCMD:/home/steam/Steam \
--volume "/Volumes/docker/SteamCMD/steamapps/common/ARK Survival Evolved Dedicated Server/ShooterGame/Saved":"/home/steam/Steam/steamapps/common/ARK Survival Evolved Dedicated Server/ShooterGame/Saved" \
--env CPU_MHZ=3200 \
--memory 10g \
ark-server:latest- Adjust
UIDandGIDaccording to your system. - Adjust
CPU_MHZbased on your machine's CPU speed. - It is recommended to keep the entire server directory on a local device instead of a network drive to prevent slow loading times.
- However, the save folder (container path:
/home/steam/Steam/steamapps/common/ARK Survival Evolved Dedicated Server/ShooterGame/Saved) can be mounted separately to a network drive.
Comment out the server update command in start.sh, as SteamCMD is not supported on ARM.