Manual Setup Alert

This guide shows manual installation. With GameCP, you get auto-restarts, built-in mod management, resource monitoring, and 1-click updates β€” plus unlimited servers on a single node vs. traditional hosts that charge per slot.

Auto-restarts
Mod manager
Live monitoring
1-click updates
Skip the Manual Work β€” Deploy in 5 Minutes
Part 3 of 12: Game ConfigurationNext Part β†’
Game Configuration: Execution & Docker
Game ConfigurationIntermediate

Game Configuration: Execution & Docker

GameCP Team
2/20/2026
game-config, execution, docker, command, resources

This is Part 3 of the Game Configuration series. Here we cover how GameCP actually runs your game server β€” the startup command, runtime mode, and Docker container settings.


Execution Configuration

Command

The Command field is the executable that starts your game server. This is the binary or script that Docker (or the host) will run.

Examples:

  • java β€” for Java-based games (Minecraft, etc.)
  • ./ValheimServer β€” for standalone executables
  • /home/container/start.sh β€” for shell script entry points

Command Type

GameCP supports four command types, which change how the command string is executed:

TypeHow It RunsBest For
Direct CommandRuns the executable with arguments passed separatelySimple executables like java or ./server
Bash ScriptRuns via /bin/bash -cCommands needing pipes, redirects, or shell features
Shell ScriptRuns via /bin/sh -cMinimal containers that may not have bash
PowerShellRuns as PowerShell scriptWindows-based game servers

Most games use Direct Command. Switch to Bash or Shell when you need shell features like &&, pipes (|), or environment variable expansion within the command itself.

Game Folder

The directory inside the container where game files are stored. This is the path where installation downloads go and where the game expects to find its data.

Common examples:

  • /home/container β€” default for most Docker-based setups
  • /opt/game β€” alternative convention

Working Directory

An optional subdirectory within the game folder where the command should actually execute. Leave this empty to run from the game folder root.

For example, if the game folder is /home/container but the executable is in a bin/ subfolder, set working directory to bin.

Mode

Two options:

  • Docker (recommended) β€” runs the game inside a Docker container with full isolation, resource limits, and volume management
  • Native β€” runs directly on the host system without containerization. Use only when Docker is not suitable for the game.

Command Preview

When using Direct Command type, the editor shows a live preview of the full command that will be executed, including any environment variable substitutions. This is useful for verifying your configuration before saving.


Docker Configuration

The Docker section controls how the container is built and managed.

Docker Image

The container image to use (e.g., itzg/minecraft-server, steamcmd/steamcmd:latest). This is pulled from Docker Hub or any configured registry.

Volumes

Volume mappings connect directories on the node to directories inside the container. The default mapping is:

${SERVER_FOLDER} β†’ /home/container

This maps the game server's data folder on the node to /home/container inside the container. You can add additional volume mappings if the game needs access to other directories.

Resource Limits

Set limits on what the container can use:

ResourceDescription
CPU LimitMaximum CPU cores (e.g., 2.0 for two cores)
CPU SharesRelative CPU weight (higher = more CPU time)
Memory LimitMaximum RAM (e.g., 4G for 4 gigabytes)
Swap LimitMaximum swap memory (set to 0 to disable)
I/O WeightDisk I/O priority
GPU LimitGPU access configuration
Disk LimitMaximum disk space
Network LimitNetwork bandwidth cap

These limits are enforced by Docker and prevent a single game server from consuming all node resources.

Additional Options

  • Use Image Entrypoint β€” use the Docker image's built-in entrypoint instead of overriding it with the command
  • Cache Enabled β€” enable Docker layer caching for faster container rebuilds
  • Interactive Mode β€” keep stdin open (needed for games that accept console commands)

Tips

  • Always test your command configuration by creating a single server first before deploying at scale
  • The Command Preview is your best friend β€” check it before saving
  • If a game fails to start, the first thing to check is the command and working directory
  • Resource limits are optional but strongly recommended in multi-tenant environments
  • When using Bash/Shell command type, the command and arguments fields merge into a single script β€” the command line editor isn't relevant