Skip to content

LacledesLAN/gamesvr-garrysmod

Repository files navigation

Garry's Mod Dedicated Server in Docker

Garry's Mod (GMod) is a sandbox physics game created by Garry Newman originally a mod for Half-Life 2 but was later made into a standalone release. The base game mode "sandbox" has no set objectives, and gives the player the freedom to spawn non-player characters (NPCs), ragdolls or objects (called props), such as furniture, shipping containers, dumpsters and explosions, and interact with them in various ways. Garry's Mod allows users to take advantage of the extensibility of the Source Engine through the spawn menu which enables users to spawn models and maps imported by the user.

Garry's Mod

This repository is maintained by Laclede's LAN. Its contents are intended to be bare-bones and used as a stock server. If any documentation is unclear or it has any issues please see CONTRIBUTING.md.

Linux Container

linux/amd64

Download

docker pull lacledeslan/gamesvr-garrysmod

Run Interactive Server

docker run -it --rm lacledeslan/gamesvr-garrysmod ./srcds_run -game garrysmod +map gm_construct +sv_lan 1 +maxplayers 32";

Run Self Tests

The image includes a test script that can be used to verify its contents. No changes or pull-requests will be accepted to this repository if any tests fail.

docker run -it --rm lacledeslan/gamesvr-garrysmod ./ll-tests/gamesvr-garrysmod.sh

Getting Started with Game Servers in Docker

Docker is an open-source project that bundles applications into lightweight, portable, self-sufficient containers. For a crash course on running Dockerized game servers check out Using Docker for Game Servers. For tips, tricks, and recommended tools for working with Laclede's LAN Dockerized game server repos see the guide for Working with our Game Server Repos. You can also browse all of our other Dockerized game servers: Laclede's LAN Game Servers Directory.