Highly configurable factorio game server
1.1K
This image allows you to run a factorio game server in a docker container. It provides several evironment variables to configure your server as well as volumes to store your savegames, mods and configs in a persistant manner. On startup the container checks for existing savegames, if none is present it will create a new map. It is also possible to run multiple maps with the same image by mounting the volumes for each container to different directories.
It seems that the steam factorio client is still running on 0.12.29 and will not work with the latest version (0.12.30) of the server. In order to run the correct server version use thomasnowotny/factorio:0.12.29 when starting your container.
To run factorio in a container without any persistant storage execute the following command:
docker run -d --name factorio \
--restart="always" \
-p 34197:34197/udp \
thomasnowotny/factorio:latest
To add persistant storage extend the previous command as follows (where PATH is a local directory of your choice):
docker run -d --name factorio \
--restart="always" \
-p 34197:34197/udp \
-v [PATH]:/opt/factorio/saves \
thomasnowotny/factorio:latest
To modify environment variables (e.g. increase savegame slots) adapt the previous command as follows:
docker run -d --name factorio \
--restart="always" \
-p 34197:34197/udp \
-v [PATH]:/opt/factorio/saves \
-e FACTORIO_AUTOSAVE_SLOTS=10 \
thomasnowotny/factorio:latest
At this point the factorio server can be started/stopped by executing
docker stop factorio
or
docker start factorio
The following environment variables are available:
The following volumes can be mounted:
I will try to keep this image up-to-date. If you require a previous version check the tags section or override the "FACTORIO_VERSION" environment varible inside the Dockerfile with your desired factorio server version and build the image locally.
Content type
Image
Digest
Size
82.6 MB
Last updated
over 10 years ago
docker pull thomasnowotny/factorio