Installation
Docker installation
The first thing you need to do is to set up a system with the requirements needed to run Docker and Docker compose. Then install Docker and Docker compose if you don’t have them already.
Note
You need root user privileges to run all the commands described below.
Requirements
Container memory
We recommend configuring the Docker host with at least 6 GB of memory. Depending on the deployment and usage, Wazuh indexer memory consumption varies. Therefore, allocate the recommended memory for a complete stack deployment to work properly.
Increase max_map_count on your host (Linux)
Wazuh indexer creates many memory-mapped areas. So you need to set the kernel to give a process at least 262,144 memory-mapped areas.
Increase
max_map_count
on your Docker host:Update the
vm.max_map_count
setting in/etc/sysctl.conf
to set this value permanently. To verify after rebooting, run “sysctl vm.max_map_count
”.Warning
If you don’t set the
max_map_count
on your host, the Wazuh indexer will NOT work properly.
Docker engine
For Linux/Unix machines, Docker requires an amd64 architecture system running kernel version 3.10 or later.
Open a terminal and use
uname -r
to display and check your kernel version:Output
Run the Docker installation script:
On Ubuntu/Debian machinesOn CentOS machinesOn Amazon Linux 2 machines
Start the Docker service:
SystemdSysV init
Note
If you would like to use Docker as a non-root user, you should add your user to the docker
group with something like the following command: usermod -aG docker your-user
. Log out and log back in for this to take effect.
Docker compose
The Wazuh Docker deployment requires Docker Compose 1.29 or later. Follow these steps to install it:
Download the Docker Compose binary:
Grant execution permissions:
Test the installation to ensure everything is fine:
Output
Note
If the command
docker-compose
fails after installation. Create a symbolic link to/usr/bin
or any other directory in your path:ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Last updated