Skip to main content

Running a NetBeez Docker Agent on Windows

Install Docker Desktop on Windows and run a persistent NetBeez Docker Network Agent connected to your NetBeez NextGen dashboard.

Written by Panickos Neophytou

You can run the official NetBeez Docker Agent (netbeez/nb-agent) on Windows Server or an always-on Windows host using Docker Desktop for Windows. A Docker Agent runs inside a lightweight Linux container and registers in your NetBeez NextGen dashboard under Agents → Network Agents.

Note: If you are monitoring end-user Windows 10 or Windows 11 laptops and workstations—including local Wi-Fi, VPN, and endpoint telemetry—install the native Windows MSI endpoint agent instead so it registers under Agents → Remote Workers (see Install NetBeez Agents, Inviting Remote Workers from the Dashboard, and Agent Types).

In this article:

Prerequisites

  • Hardware Virtualization & Backend: 64-bit Windows with BIOS/UEFI hardware virtualization (Intel VT-x or AMD-V) enabled and WSL 2 (recommended) or Hyper-V Linux containers configured.

  • Outbound Connectivity: Access to Docker Hub to pull netbeez/nb-agent and outbound connectivity to your NetBeez NextGen server (see Network Firewall Settings).

  • NetBeez Server Secret Key: Sign in as an Administrator to copy your Server Secret Key from Settings → Information & Health (under Server Information), or open Agents → Network Agents → Install Network Agent → Container where the Docker command is pre-populated with your key (see Secret Key).

Step 1: Install and Verify Docker Desktop on Windows

  1. Download and install Docker Desktop for Windows from the official Docker documentation.

  2. Ensure hardware virtualization and WSL 2 (or Hyper-V) are enabled if prompted by the installer, and reboot Windows if required.

  3. Launch Docker Desktop from the Windows Start Menu (run as Administrator if prompted during initial setup) and wait until the Docker Engine status reports Running.

  4. Open PowerShell or Command Prompt as Administrator and verify that Linux containers can run:

    docker run hello-world

    Confirm that the output displays Hello from Docker! before proceeding.

Step 2: Launch the NetBeez Docker Agent

  1. Create a named Docker volume so the container persists its generated agent UUID and configuration across container restarts and Windows reboots:

    docker volume create netbeez-config-vol
  2. Start the netbeez/nb-agent container in detached mode with automatic restart enabled, replacing <secret_key> with your Server Secret Key from Settings → Information & Health (or copy the pre-populated command from Agents → Network Agents → Install Network Agent → Container):

    docker run -d --restart=always -e "NB_SECRET_KEY=<secret_key>" -v netbeez-config-vol:/etc/netbeez/persistence/:rw netbeez/nb-agent

    Important: Always pass all -e environment variable flags (such as NB_SECRET_KEY, optional AGENT_UUID, or proxy variables—see the netbeez/nb-agent Docker Hub guide) before the -v volume option and image name.

Step 3: Verify Registration and Manage Container Upgrades

  • Verify in NextGen: Open Agents → Network Agents in your NetBeez NextGen dashboard to confirm the new Docker Agent is online, then assign Agent Groups, Targets, and Scheduled Tests.

  • Automatic Startup on Windows Boot: In Docker Desktop Settings → General, enable Start Docker Desktop when you sign in to your computer so the container resumes monitoring automatically after host restarts.

  • Upgrading the Container Image: Because agent identity is stored in netbeez-config-vol, you can pull a newer netbeez/nb-agent image and recreate the container while preserving the same agent record and historical metrics (see Agent Configuration - Upgrade Docker Agent).

Did this answer your question?