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_counton your Docker host:sysctl -w vm.max_map_count=262144Update the
vm.max_map_countsetting in/etc/sysctl.confto set this value permanently. To verify after rebooting, run “sysctl vm.max_map_count”.Warning
If you don’t set the
max_map_counton 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 -rto display and check your kernel version:uname -rOutput
3.10.0-229.el7.x86_64Run the Docker installation script:
On Ubuntu/Debian machinesOn CentOS machinesOn Amazon Linux 2 machines
curl -sSL https://get.docker.com/ | shStart the Docker service:
SystemdSysV init
systemctl start docker
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:
curl -L "https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-composeGrant execution permissions:
chmod +x /usr/local/bin/docker-composeTest the installation to ensure everything is fine:
docker-compose --versionOutput
Docker Compose version v2.12.2Note
If the command
docker-composefails after installation. Create a symbolic link to/usr/binor any other directory in your path:ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Last updated