Docker build for managing an ARK: Survival Evolved server.
This image uses Ark Server Tools to manage an ark server.
Docker stop
is a clean stop Fast & Easy server setup :
docker run -d -p 7778:7778 -p 7778:7778/udp -p 27015:27015 -p 27015:27015/udp -e SESSIONNAME=myserver -e ADMINPASSWORD="mypasswordadmin" --name Ark ghcr.io/hoellenwesen/docker-ark-dedicated-server:latest
You can map the ark volume to access config files :
docker run -d -p 7778:7778 -p 7778:7778/udp -p 27015:27015 -p 27015:27015/udp -e SESSIONNAME=myserver -v /my/path/to/ark:/ark --name Ark ghcr.io/hoellenwesen/docker-ark-dedicated-server:latest
Then you can edit /my/path/to/ark/arkmanager.cfg (the values override GameUserSetting.ini) and /my/path/to/ark/[GameUserSetting.ini/Game.ini]
You can manager your server with rcon if you map the rcon port (you can rebind the rcon port with docker):
docker run -d -p 7778:7778 -p 7778:7778/udp -p 27015:27015 -p 27015:27015/udp -p 32330:32330 -e SESSIONNAME=myserver --name Ark ghcr.io/hoellenwesen/docker-ark-dedicated-server:latest
You can change server and steam port to allow multiple servers on same host:
(You can't just rebind the port with docker. It won't work, you need to change STEAMPORT & SERVERPORT variable)
docker run -d -p 7779:7779 -p 7779:7779/udp -p 27016:27016 -p 27016:27016/udp -p 32331:32330 -e SESSIONNAME=myserver2 -e SERVERPORT=27016 -e STEAMPORT=7779 --name Ark2 ghcr.io/hoellenwesen/docker-ark-dedicated-server:latest
You can check your server with :
docker exec Ark arkmanager status
You can manually update your mods:
docker exec Ark arkmanager update --update-mods
You can manually update your server:
docker exec Ark arkmanager update --force
You can force save your server :
docker exec Ark arkmanager saveworld
You can backup your server :
docker exec Ark arkmanager backup
You can upgrade Ark Server Tools :
docker exec Ark arkmanager upgrade-tools
You can use rcon command via docker :
docker exec Ark arkmanager rconcmd ListPlayers
Full list of available command here
You can check all available command for arkmanager here
You can easily configure automatic update and backup.
If you edit the file /my/path/to/ark/crontab
you can add your crontab job.
For example :
# Update the server every hours
0 * * * * arkmanager update --warn --update-mods >> /ark/log/crontab.log 2>&1
# Backup the server each day at 00:00
0 0 * * * arkmanager backup >> /ark/log/crontab.log 2>&1
You can check this website for more information on cron.
To add mods, you only need to change the variable ark_GameModIds in arkmanager.cfg with a list of your modIds (like this ark_GameModIds="987654321,1234568"
). If UPDATEONSTART is enable, just restart your docker or use docker exec ark arkmanager update --update-mods
.
docker run -it -p 7778:7778 -p 7778:7778/udp -p 27015:27015 -p 27015:27015/udp -p 32330:32330 -e SESSIONNAME=myserver -e ADMINPASSWORD="mypasswordadmin" -e AUTOUPDATE=120 -e AUTOBACKUP=60 -e WARNMINUTE=30 -v /my/path/to/ark:/ark --name Ark ghcr.io/hoellenwesen/docker-ark-dedicated-server:latest
0 0 * * * arkmanager update --warn --update-mods >> /ark/log/crontab.log 2>&1
0 0 * * * arkmanager backup >> /ark/log/crontab.log 2>&1
docker start ark
docker exec Ark arkmanager status
tzselect
. For example, France is "Europe/Paris").