/docker-ark

Unofficial docker image for ARK: Survival Evolved - http://store.steampowered.com/app/346110/

Primary LanguageShellGNU General Public License v2.0GPL-2.0

Unofficial docker image for ARK: Survival Evolved - http://store.steampowered.com/app/346110/

Possibly the easiest way yet to create your own ARK: Survival Evolved server!
Just follow the instructions and you'll be up and running in minutes!

If you're experiencing issues using this docker image please report them on Github

Features

  • Allows you to run an ARK: Survival Evolved server via Docker
  • Automatic backup before container startup/update

Preparations

  • Create /data/ark on your system and give permissions to user with UID 1000:
    mkdir /data/ark; chown 1000 -R /data/ark/
  • On the docker host increase the ulimits for open files as recommended by ARK devs here: http://steamcommunity.com/app/346110/discussions/0/594820656471833280/
    • Edit /etc/sysctl.conf and set:
      fs.file-max=100000

    • Edit /etc/security/limits.conf and set these limits:
      soft nofile 100000
      hard nofile 100000

    • Edit /etc/pam.d/common-session and add the line:
      session required pam_limits.so

      Finally execute: sysctl -p or reboot the machine.

  • Create your server configuration file

Usage

  • Pull the docker-ark image:
    docker pull phantium/ark

  • Launching a server container:
    docker run -d --restart=on-failure:5 -v /data/ark:/data/ark -p 27015:27015/udp -p 7778:7778/udp --name=ark phantium/ark

  • Updating a server container
    docker restart ark

  • Starting a stopped server container
    docker start ark

  • Stopping a server container
    docker stop ark

Optional variables

  • CHECKFILES Set this variable to true in order to validate installation files, this is off by default as it slows down startup a lot.
    • If you want to validate an existing server, remove it first and set the CHECKFILES variable in the run command like so:
      docker run -d -e CHECKFILES="true" --restart=on-failure:5 -v /data/ark:/data/ark -p 27015:27015/udp -p 7778:7778/udp --name=ark phantium/ark