Updating DB Agent
Updating DB Agent periodically gets you bug fixes, security patches, and new features.
Active connections will be interrupted
Database containers run independently of the DB Agent daemon, so they stay up and keep their data intact across an update. However, all client connections go through DB Agent's proxies, so restarting it will drop every active connection to every database. Plan updates around a moment where a brief reconnect is acceptable.
Upgrading from the Panel
DB Agent 1.2.4 and newer, installed as a binary or package, can upgrade itself from the Panel: see Upgrading the Agent. The agent downloads the release from GitHub, checks it against the release's SHA-256 digest, replaces its own binary and restarts in place. It refuses while instances are booting, autostarting, changing power state or running operations, or while imports or exports run. Set ignore_upgrades to turn this off. An agent in a container cannot upgrade itself.
Pick the method matching how you installed DB Agent. Each block below is the whole update, so you can copy it in one go. Run sudo -v first so a password prompt doesn't swallow the rest of a pasted block. If your system doesn't have sudo, like Alpine, run the commands as root and leave it out.
Return to the directory containing your DB Agent compose.yml, then run:
sudo docker compose pull
sudo docker compose up -d
sudo docker compose ps
sudo docker compose logs --tail 50Docker handles the restart as part of up -d.