Docka Agent

Lightweight agent running on managed servers for monitoring and management.

What it Does

  • Metrics Collection - CPU, memory, disk, network usage
  • Container Management - Start, stop, restart containers
  • Deployments - Handle app deployments and rollbacks
  • SSH Key Sync - Manage authorized keys
  • Real-time Commands - WebSocket connection for instant response
  • Health Checks - Monitor application health

Automatic Installation

When you provision a server through Docka, the agent is installed automatically.

Manual Installation (BYOS)

For Bring Your Own Server (BYOS), install the agent manually:

Quick Install

curl -fsSL https://docka.dev/install.sh | sudo bash
docka-agent install --token YOUR_AGENT_TOKEN --server-id YOUR_SERVER_ID

Manual Download

# Linux AMD64
wget https://docka.dev/releases/latest/docka-agent-linux-amd64.tar.gz
tar -xzf docka-agent-linux-amd64.tar.gz
sudo mv docka-agent /usr/local/bin/
sudo chmod +x /usr/local/bin/docka-agent

# Install as service
sudo docka-agent install --token YOUR_AGENT_TOKEN --server-id YOUR_SERVER_ID

Agent Token

Get your agent token from the server details page in the Docka dashboard, or via API:

GET /api/v1/servers/{id}/agent-token

Supported Platforms

  • Linux AMD64 (x86_64)
  • Linux ARM64 (aarch64)

Security

  • Token is hashed (SHA-256) before storage
  • WebSocket connections use TLS encryption
  • Constant-time token comparison prevents timing attacks