Installation Guide
Learn how to install the HostMode Agent on your server using Docker.
HostMode uses a lightweight Docker-based agent that runs on your server. This agent connects securely to your cloud dashboard, allowing you to manage your game servers from anywhere.
Quick Install (Recommended)
The easiest way to install is with our install script. Choose your operating system:
Run this in your terminal:
bash <(curl -fsSL https://hostmode.net/downloads/install.sh)The script will:
- Check if Docker is installed (and install it if needed)
- Prompt you for your license key
- Download and configure the agent
- Start the agent automatically
Prefer manual installation? Follow the Linux steps below.
Manual Installation
Prerequisites
Before installing the HostMode Agent, ensure you have:
- A HostMode account with an active license
- A Linux server (Ubuntu 20.04+, Debian 11+, or any Linux with Docker support)
- Docker and Docker Compose installed
- At least 2GB of available RAM per Minecraft server
Don't have Docker installed?
curl -fsSL https://get.docker.com | sudo shStep 1: Get Your License Key
First, obtain your license key from the HostMode dashboard:
- Log in to your HostMode dashboard
- Navigate to Licenses in the sidebar
- Click on your active license to view its details
- Copy your license key (format:
HM-XXXX-XXXX-XXXX-XXXX)
Step 2: Download and Configure
Create a directory for HostMode and download the configuration:
# Create HostMode directory
mkdir -p ~/hostmode && cd ~/hostmode
# Download docker-compose.yml
curl -O https://hostmode.net/downloads/docker-compose.yml
# Create directories for data
mkdir -p data config
# Create environment file with your license key
echo "HOSTMODE_LICENSE_KEY=HM-XXXX-XXXX-XXXX-XXXX" > .envImportant
Replace HM-XXXX-XXXX-XXXX-XXXX with your actual license key from the dashboard.
Step 3: Start the Agent
Launch the HostMode agent:
# Start the agent
docker compose up -d
# View logs to verify it's running
docker compose logs -fYou should see output like:
[HostMode] Registered successfully! Instance UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[HostMode] HostMode Agent is running. Press Ctrl+C to stop.
Step 4: Verify in Dashboard
Once the agent is running:
- Return to your HostMode dashboard
- Navigate to Instances
- Your new instance should appear with a green "Online" status
Success!
If your instance shows as online, you're ready to create your first Minecraft server.
Managing the Agent
View Logs
docker compose logs -fStop the Agent
docker compose downUpdate to Latest Version
You can update the agent directly from the web dashboard by clicking the "Update Now" button on your instance page when a new version is available. Alternatively, update manually via command line:
docker compose pull
docker compose up -dRestart the Agent
docker compose restartTroubleshooting
Agent won't connect
Check the logs for error messages:
docker compose logs --tail=50License key rejected
Verify your license is active and hasn't reached its instance limit. Check your .env file has the correct key:
cat .envConnection issues
Ensure your firewall allows outbound HTTPS connections (port 443).
Port conflicts
The agent uses network_mode: host so Minecraft servers will use ports directly on your host. Make sure ports 25565+ are available and open in your firewall.
Need Help?
If you're still having issues, contact our support team and we'll help you out.