This repository provides a safe container image for the Killing Floor 2 game server. It is designed to be used with Docker Compose, making it easy to set up and manage your game server environment.
Once Docker and Docker Compose are installed, clone this repository to your local machine:
git clone https://github.com/RouHim/killing-floor-2-container-image.git
cd killing-floor-2-container-image
Before starting the server, create the required folder structure, and adjust the permissions:
mkdir data/
chmod 777 data/
The
chmodcommand is recommended to avoid permission issues. The main reason is, that the user in the container, most likely differs from the user on the host.
To start the Killing Floor 2 server, navigate to the cloned repository's directory and use Docker Compose:
docker-compose pull
docker-compose up -d
This will pull the latest image and start the server in detached mode.
When starting the server for the first time:
config/ folder.data/ folder.You have to restart after the first start.
To restart the server after making changes to the configuration, use the following command:
docker-compose restart
In order to check the server logs, use the following command:
docker-compose logs -f
To update the server, just restart the container. The server checks for updates and validates on every boot per default.
To skip update and validation of the server files on every boot, set the
FAST_BOOTenv variable totrue.
The server configuration does not differ from the official server configuration. Just follow an existing server configuration guide like this.
The data folder contains the game server data.
Any modification to the server configuration should be done when the server is stopped.
Otherwise, the changes will be most likely overwritten.
Configuration via environment variables is also possible:
| Name | Description | Example | Default value |
|---|---|---|---|
KF2_SERVER_NAME | Server name | My Server | Killing Floor 2 Server |
KF2_SERVER_SUBSCRIBED_WORKSHOP_ITEMS | Workshop items to subscribe to | 123456789 | |
KF2_WEB_ADMIN_ENABLED | Enable web admin | true | false |
KF2_ADMIN_PASSWORD | Password for admin login and web admin login | Password | |
KF2_DISABLE_TEAM_COLLISION | Disable team collision | true | false |
KF2_USED_FOR_TAKEOVER | Used for takeover | true | false |
KF2_BANNER_LINK | Banner link | https://example.com/banner.jpg | |
KF2_SERVER_MOTD | Server message of the day | Welcome to my server! | |
KF2_CLAN_MOTTO | Clan motto | My clan motto | |
KF2_NET_SERVER_MAX_TICK_RATE | Maximum tick rate | 30 | 30 |
KF2_MAX_INTERNET_CLIENT_RATE | Maximum internet client rate | 30 | 30 |
FAST_BOOT | If set to true, the server will not be installed / updated / validated on start | true | false |
Content type
Image
Digest
sha256:3ac00a197…
Size
120.5 MB
Last updated
2 days ago
docker pull rouhim/killing-floor-2-server