Repository navigation
Docker Runtime Host
This guide is the primary direct-host path after the Docker-first migration.
Use it when you want AlphaGSM itself to run on the machine normally, but you want individual game servers to run as Docker containers instead of screen-backed host processes.
This is not the same as Run AlphaGSM In Docker, where the whole AlphaGSM manager runs inside a container.
The documented runtime-validation baseline for this path is Ubuntu 24.04 or a newer Linux host.
With [runtime] backend = docker, AlphaGSM still handles the normal server
lifecycle:
createsetupstartstatusqueryinfostop
The difference is that start launches a Docker container for modules that
expose Docker runtime metadata.
You need:
- a normal host install of AlphaGSM
- a working host Docker CLI and daemon
- permission to run
dockeras your user - a game module that supports the Docker runtime hooks
AlphaGSM can still use the normal process runtime for modules that are not set up for Docker, but that process path is the fallback rather than the preferred user-facing workflow.
Copy the config if you have not done that yet:
cp alphagsm.conf-template alphagsm.confThen set the runtime backend:
[runtime]
backend = dockerAlphaGSM resolves the effective runtime per server. If the module exposes Docker
metadata, AlphaGSM will store the resolved runtime fields in that server's JSON
datastore during create / setup.
Example with Minecraft Vanilla:
./alphagsm mymc create minecraft.vanilla
./alphagsm mymc setupKeep the install path on a normal host-visible path such as:
/srv/alphagsm/servers/mymcFor a direct host install, there is no same-path manager-container requirement. The main rule is that the host Docker daemon must be able to bind-mount the path you choose.
Use the built-in doctor command:
./alphagsm mymc doctorThis prints the effective runtime decision and, for Docker-backed servers, includes:
- configured backend
- module runtime preference
- resolved runtime family
- image and container name
- Docker CLI health
- local image presence
- current container state
If Docker is configured but the module still resolves to process, the doctor
output will show that clearly.
./alphagsm mymc start
./alphagsm mymc status
./alphagsm mymc query
./alphagsm mymc info./alphagsm mymc stop- AlphaGSM uses the runtime-family image declared by the module or the shared
family defaults in
src/server/runtime.py. - If a default AlphaGSM runtime-family image tag is missing locally, AlphaGSM can build the matching in-repo Dockerfile on demand.
- Docker-backed servers still keep their AlphaGSM metadata under the normal server datastore path.
-
doctoris the fastest way to tell whether a server is actually resolving to Docker, which family/image it will use, and whether the local host can launch it cleanly.