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
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>
Identify and stop the running NetBeez agent container on the host:
docker ps docker stop <agent_container_name> docker rm <agent_container_name>
Start the upgraded container. If your agent uses a persistent configuration volume (recommended in Install NetBeez Agents), reattach the same volume and pass all
-eenvironment flags before the-vvolume 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-addressalong withAGENT_UUIDso 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:
Navigate to Agents → Network Agents and confirm the agent's status icon is reachable and its Version column reflects the new agent version.
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.
