Upgrading the Wazuh Docker deployment
This procedure upgrades a Wazuh 5.0 Docker deployment to a later 5.0.x release. It does not cover a Wazuh 4.x deployment.
The upgrade replaces the images and keeps everything else. Your indexed data and the configuration each component stores are in the stack's named volumes. The certificates and passwords are files in the config/ directory of your deployment. Do not run the certificate creation script certificates-conf.sh or the credentials creation script credentials-conf.sh again.
You need root user privileges to run the commands below. If you use Docker as a non-root user, run them with sudo.
Stop the current deployment
Navigate to the directory of your deployment,
wazuh-docker/single-node/orwazuh-docker/multi-node/. For example, for a single-node deployment:# cd wazuh-docker/single-node/
Stop and remove the running containers:
# docker compose down
Do not add the
-vflag. It deletes the stack's named volumes, and with them your indexed data and stored configuration.
Start the updated deployment
Start the upgraded deployment. Docker pulls the new images:
# docker compose up -d