Skip to main content

Upgrading a NetBeez Docker Agent

Upgrade an existing NetBeez Docker container agent while preserving its UUID, persistent configuration volume, and historical test data.

Written by Panickos Neophytou

Upgrading a NetBeez Docker container agent (netbeez/nb-agent) involves pulling the desired image tag on your Docker host and recreating the container with your existing persistent configuration volume (or explicit agent UUID and MAC address) so the agent reconnects to NetBeez NextGen as the same agent with all historical data and assignments intact.

In this article:

Before You Begin: Gather Agent Identity & Secret Key

Before stopping the running container, confirm how the container was originally deployed and record its identifiers so it does not register as a duplicate agent:

  • Agent UUID & MAC Address: Open Agents → Network Agents, click the Docker agent to open Agent Details, expand the Agent Details summary card to copy its UUID, and note its Ethernet MAC Address in the Interfaces card.

  • Server Secret Key: Administrators can copy the Server Secret Key from Settings → Information & Health (under Server Information) or view the pre-filled command in Agents → Network Agents → Install Network Agent → Container (see Secret Key).

  • Persistent Docker Volume: On the Docker host, inspect the existing container (docker inspect <container_name_or_id>) to check the name of any volume mounted to /etc/netbeez/persistence/ (for example, netbeez-config-vol).

Upgrade Procedure

  1. Pull the latest NetBeez Docker agent image from Docker Hub:

    docker pull netbeez/nb-agent:latest

    To pin a specific agent release instead of latest, specify the tag from Docker Hub tags:

    docker pull netbeez/nb-agent:<version_tag>
  2. Identify and stop the running NetBeez agent container on the host:

    docker ps
    docker stop <agent_container_name>
    docker rm <agent_container_name>
  3. Start the upgraded container. If your agent uses a persistent configuration volume (recommended in Install NetBeez Agents), reattach the same volume and pass all -e environment flags before the -v volume option:

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

    If the previous container was deployed without a persistent volume, also pass --mac-address along with AGENT_UUID so the server matches the existing agent record (see Replacing an Agent Preserving Its UUID):

    docker run -d --restart=always \
      --mac-address="<mac_address>" \
      -e "NB_SECRET_KEY=<secret_key>" \
      -e "AGENT_UUID=<uuid>" \
      netbeez/nb-agent:latest

Verifying the Upgraded Version in NextGen

Within a few seconds of starting the container, verify the upgrade in NetBeez NextGen:

  1. Navigate to Agents → Network Agents and confirm the agent's status icon is reachable and its Version column reflects the new agent version.

  2. Click the agent to open Agent Details and verify in the summary bar that Uptime is active, Version is updated, and continuous tests in the Monitoring tab have resumed.

For additional container runtime options—including Cisco Catalyst and Azure container deployments—see Cisco Catalyst Docker App Hosting, Azure Docker Container Agent, Installing Docker Desktop on Windows, and the netbeez/nb-agent Docker Hub documentation.

Did this answer your question?