This repository contains Dockerfile of Left 4 Dead 2 Server for Docker published to the public Docker Hub Registry.
Install Docker.
Download automated build from public Docker Hub Registry: docker pull johnjelinek/l4dserver
(alternatively, you can build an image from Dockerfile: docker build -t="johnjelinek/l4dserver" github.com/johnjelinek/l4dserver-docker)
docker run -dt --name l4d2 -v /var/docker/l4dserver:/home/l4dserver -p 27015:27015 \
-p 27015:27015/udp --entrypoint /home/l4d2server/serverfiles/srcds_run johnjelinek/l4d2server \
-game left4dead2 -strictportbind -ip 0.0.0.0 -port 27015 +clientport 27005 \
+map c5m1_waterfront +servercfgfile l4d2-server.cfg -maxplayers 8
Copy /l4dserver to ~/l4dserver
./l4dserver install
Answer some questions
You can test everything went well with ./l4dserver start followed by ./l4dserver details.
If everything looks good, run with the command listed under Usage.
From Steam Menu, View > Servers > Add yourServerIP server as a favorite and double click to join.
Content type
Image
Digest
sha256:c6d696a3e…
Size
107.7 MB
Last updated
almost 11 years ago
docker pull johnjelinek/l4d2server