Killing Floor

Killing Floor

Not enough ratings
Killing Floor - Docker Version
By Vel
This guide is directed to players who are familiar with docker, or anyone who wants to learn what Docker is; and a quick description of my version of Killing Floor inside a docker.
   
Award
Favorite
Favorited
Unfavorite
Introduction
I won't describe exactly what docker is, because it's a pretty complex technology for people who have totally no clue about it - but you can read about it HERE[en.wikipedia.org] as usual.

Why did i do this guide?

As a compliment to my KF-Portable[github.com], this will decrease the setup time for a server by up to almost 10x time! With docker, all you have to do is pull the image, add your server variables (Difficulty, ServerName etc..) and your server is ready to launch!

You can find the base image HERE[hub.docker.com]

And the GitHub repo (Source Code) HERE[github.com]; you are more than welcome for any contributions!

References that I've used/helped/Motivated me with creating this:

- KF2-Docker[github.com]
- KF1-Docker[github.com]
Usage
To use the docker image, do the following

Note: You can ignore cloning the repo if you manually create the env_file

-Clone the GitHub repo (Always good to have the source code with you)

- Pull the image with
docker pull vel7an/kf1-docker:latest

- Edit the env_file found in the git repo (or create it manually, check the available Variables[github.com]

- Run your server
docker run -d --name kf1 -p 0.0.0.0:7707:7707/udp -p 0.0.0.0:7708:7708/udp -p 0.0.0.0:7717:7717/udp -p 0.0.0.0:28852:28852/udp -p 0.0.0.0:28852:28852/tcp -p 0.0.0.0:8075:8075/tcp -p 0.0.0.0:20560:20560/udp -p 0.0.0.0:20560:20560/tcp -v (your server folder):/home/steam/servers/kf -e STEAM_USER=(user) -e STEAM_PASSWORD=(pass) -e STEAM_CODE=(code) --env-file=env_file vel7an/kf1-docker

You're done! Your server will be up and running in no time.
Changelog
- Changelog[github.com]
26 Comments
Vel  [author] 27 Jul, 2023 @ 9:46am 
Thanks for the notification here :)

For anybody who might be having this issue, check here: https://github.com/Vel-San/killing-floor-docker/issues/12 for the full discussion.

:csdsmile:
100th Cup Fry 27 Jul, 2023 @ 8:00am 
I have managed to run the server in OSX after some hiccups.

Sadly, I am not seeing my server in the Internet Games list in the game, even though I see the logs for the server mention:

Sending updated server details -

From this thread, it looks like some file formats changed some years ago https://steamhost.cn/steamcommunity_com/app/1250/discussions/0/3105767520085423814/?ctp=5

Not sure if this would require additional steps or if I am doing something wrong. I also see people mentioning they can join by IP. This would be an acceptable workaround, but I am not sure how to find the IP of my server running in docker
Vel  [author] 28 Sep, 2022 @ 1:54pm 
Hahah Thanks Ryder.

I'm glad the image is getting more recognition! I'm open for feedback or bug reports if you guys find anything.

Enjoy!!
Ryder.J 28 Sep, 2022 @ 1:19pm 
Mein neger Vel taking it to all new heights, such a talent!
Vel  [author] 25 Sep, 2022 @ 3:07am 
Thanks for the feedback Apache, really appreciate it!

Haha yeah, the exact use-case is something rare to find these days, to not rely on anything other than the docker image and just launching it, which gives you a ready-to-play server.

Have fun!!
Apache 25 Sep, 2022 @ 2:45am 
More utility? Perhaps. Better? I disagree, lol. Sure I could automate an entire development process with docker, but with THIS I can run a KF server for friends :)

I would like to note, by the by, I've tried this out. The image works well for me. Keep up the great work!
Vel  [author] 24 Sep, 2022 @ 8:08am 
Thankyou Apache <3 but I can assure you there are tons of better uses out there :csdsmile:
Apache 24 Sep, 2022 @ 7:12am 
This is probably the best use of docker I have ever seen.
Vel  [author] 18 Sep, 2022 @ 10:30am 
If you build the image (from the repo directory) then all the *.sh scripts should be there anyway (https://github.com/Vel-San/killing-floor-docker/blob/master/Dockerfile#L13)

I'm not exactly sure what is the issue here. Can you give me the error you are having? And how exactly did you build and from which directory?
Flesh Pound 18 Sep, 2022 @ 10:15am 
I've got it. I use the volume that is already contains all necessary stuff (except your scripta). That's why if condition is not satisfied and main.sh is not copied. Should I mount empty directory?