Install Docker
Update the repo to get latest versions
sudo apt update
Install the latest version
sudo apt install docker.io
Set Docker to start on startup
sudo systemctl enable --now docker
Give your user permissions to docker, replacing user
with your username
sudo usermod -aG docker user
Test it has installed correctly by getting the docker version
docker --version
Docker Compose
I also install docker-compose as some dockers need you to compose from a yml file. This downloads v2.16.0, just change this if the version updates to a later version
sudo curl -L "https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Give permissions to this
sudo chmod +x /usr/local/bin/docker-compose
Test it has installed correctly by getting the docker-compose version
docker-compose --version
Install Wazuh
Increase the max_map_count
sudo sysctl -w vm.max_map_count=262144
Clone the repo
git clone https://github.com/wazuh/wazuh-docker.git -b v4.1.5 --depth=1
Change directory to the wazuh_docker path
cd wazuh_docker
Start the docker instance
docker-compose up -d
First run
Run to https://serverip and you will get the login page. Default username is admin and passowrd is admin.