A nice and easy way to get a Armagetronad server up and running using docker. For
help on getting started with docker see the official getting started guide.
For more information on Armagetronad and check out it's website.
You can simply take the image from the official repository with:
docker pull izissise/armagetronad
Running this will build you a docker image with the latest version of both
docker-armagetronad and Armagetronad-0.2.9-sty+ct+ap itself.
git clone https://github.com/izissise/docker-armagetronad cd docker-armagetronad docker build -t izissise/armagetronad .
Running the first time will set your port to a static port of your choice so
that you can easily map a proxy to. If this is the only thing running on your
system you can map the port to 4534 and no proxy is needed. i.e.
-p=4534:4534/udp Also be sure your mounted directory on your host machine is
already created before running
mkdir -p /mnt/armagetronad. And to put in that
directory configuaration files of the server:
You need TRUST_LAN 1
docker run -d -p 4534:4534/udp -v "/mnt/armagetronad:/home/armagetronad/settings/settings" --name="armagetronad" izissise/armagetronad
From now on when you start/stop docker-armagetronad you should use the container id
with the following commands. To get your container id, after you initial run
sudo docker ps and it will show up on the left side followed by the
image name which is
docker start <container_id> docker stop <container_id>
Notes on the run command
-vis the volume you are mounting
izissise/armagetronadis simply what I called my docker build of this image
-d=trueallows this to run cleanly as a daemon, remove for debugging
-pis the port it connects to,