Installing dependencies

Note

The Docker listener module can be configured in the Wazuh manager (which also behaves as an agent) or directly in a Wazuh agent.

Warning

The Wazuh manager includes all dependencies installed, these steps are only necessary when configuring the integration in a Wazuh agent.

Python

The Docker listener module requires python 3. It is compatible with python versions from 3.6.0 to 3.9.5. Future python releases should maintain compatibility although it cannot be guaranteed.

  1. For CentOS/RHEL/Fedora operating systems:

# yum update && yum install python3
  1. For Debian/Ubuntu operating systems:

# apt-get update && apt-get install python3

Pip

The required modules can be installed with Pip, the Python package manager. Most of UNIX distributions have this tool available in their software repositories:

  1. For CentOS/RHEL/Fedora operating systems:

# yum update && yum install python3-pip
  1. For Debian/Ubuntu operating systems:

# apt-get update && apt-get install python3-pip

Python Docker Library

Python Docker library is the official Python library for the Docker Engine API. The Wazuh docker integration requires docker 4.2.0.

To install the Python Docker Library, execute the following command:

# pip3 install docker==4.2.0