A Quake 2 server using q2pro version.
9.9K
This Docker image runs a Quake II server using q2pro. It allows users to upload game files, configure mods, and change server settings easily. By default, the server starts with the baseq2 mod, but users can specify other mods through environment variables.
You need to have the original Quake II files, especially pak0.pak, as they are required to run the server. These can be uploaded to the baseq2 directory via a Docker volume.
docker pull docker.io/theshihan/quake2server:latest
You can start the Quake II server container by specifying the environment variables for the mod and config you wish to use.
docker run -d \
-e Q2MODNAME=lithium \
-e Q2MODCONFIG=server.cfg \
-e Q2SERVERPORT=27910 \
-v /path/to/baseq2:/usr/share/games/quake2/baseq2 \
-v /path/to/lithium:/usr/share/games/quake2/lithium \
-p 27910:27910/udp \
docker.io/theshihan/quake2server:latest
Q2MODNAME: The mod directory to be used (e.g., opentdm, lithium, openffa).Q2MODCONFIG: The configuration file to be executed for the server settings (default is server.cfg).Q2SERVERPORT: The (internal) port on which the Quake II server will listen (default is 27910).-v /path/to/baseq2: A mapped volume for the baseq2 directory, where you upload the pak0.pak file and other base Quake II files.-v /path/to/mod: A mapped volume for the mod directory, required.-p 27910:27910/udp: Maps the server port for external access.pak0.pak file to /usr/share/games/quake2/baseq2 using the mapped volume. Without this file, the server will not start./usr/share/games/quake2/lithium.Once the server is running, connect to it using the server's IP and the port number you specified (default is 27910, don't forget to open the port on your firewall):
quake2 +connect <server-address>:<server-port>
baseq2).server.cfg).27910).Make sure that the user running the container (quake2-server with user ID 1001 and group ID 1001) can write to the mounted volumes. This is at least needed for most mods:
chown -R 1001:1001 /path/to/mounted/directory # Based on UID/GID of 'quake2-server' inside the container
chmod -R 755 /path/to/mounted/directory
/home/quake2-server/.q2pro/baseq2: Required. This volume is where the base game files, including pak0.pak, are stored./home/quake2-server/.q2pro/<modname>: Required. This volume is for custom mod files (e.g., lithium, openffa, etc.)./usr/share/games/quake2/baseq2: Required. This volume is where the base game files, including pak0.pak, are stored./usr/share/games/quake2/<modname>: Required. This volume is for custom mod files (e.g., lithium, openffa, etc.).Q2SERVERPORT environment variable.lithium or openffa, for correct functionality.Content type
Image
Digest
sha256:53ed7c524…
Size
199.7 MB
Last updated
almost 2 years ago
docker pull theshihan/quake2server:q2pro-20240904