Willing to know about ClamAV docker image? We can help you.
At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Service.
Let’s take a look at how our Support Team help a customer deal with this query.
ClamAV docker image
Dockerized open source antivirus daemons for use with
- Firstly, file sharing containers like Nextcloud or
- Then, to use it via a REST proxy like @solita made clamav-rest or
- Next, to directly connect to clamav via TCP port
3310
ClamAV daemon as a Docker image.
Usually, it builds with a current virus database and runs freshclam
in the background constantly updating the virus signature database.
clamd
itself is listening on exposed port 3310
.
There are different releases for the different platforms.
Installation Instructions
Using Docker
ClamAV can be run using Docker.
Then for details, visit to the online manual under “Docker” and check out our images on Docker Hub.
Using a Package Manager
Here for help installing from a package manager, refer to the online manual under “Packages”.
Using an Installer
The following install packages are available for download from clamav.net/downloads:
- Firstly, linux – Debian and RPM packages for x86_64 and i686. New in v0.104.
- Secondly, macOS – PKG installer for x86_64 and arm64 (universal). New in v0.104.
- Thirdly, Windows – MSI installers and portable ZIP packages for win32 and x64.
Then, to learn how to use these packages, refer to the online manual under “Installing”.
Build from Source
For step-by-step instructions, refer to the online manual:
- Unix/Linux/Mac
- Windows
Usually, the source archive for each release includes a copy of the documentation for offline reading.
Then, a reference with all of the available build options can be found in the INSTALL.md
file.
Usage
The container run as user clamav
with uid=101
and gid=102
.
Debian
- buster-slim
- stretch-slim
docker run -d -p 3310:3310 mkodockx/docker-clamav:buster-slim
Alpine
- alpine
- alpine-edge
docker run -d -p 3310:3310 mkodockx/docker-clamav:alpine
Linked usage recommended, to not expose the port to “everyone”.
docker run -d --name av mkodockx/docker-clamav(:alpine)
docker run -d --link av:av application-with-clamdscan-or-something
Environment VARs
Proxy
Thanks to @mchus proxy configuration is possible.
- HTTPProxyServer: Allows to set a proxy server
- HTTPProxyPort: Allows to set a proxy server port
Database Mirror
Specifying a particular mirror for freshclam is also possible.
- DatabaseMirror: Hostname of the mirror web server.
Custom Configuration Files
Mount custom configuration files into the container.
- FRESHCLAM_CONF_FILE: Path to custom
freshclam.conf
file, e.g./mnt/freshclam.conf
. - CLAMD_CONF_FILE: Set the path to a custom
clamd.conf
file, e.g./mnt/clamd.conf
.
Persistency
Virus update definitions are stored in /var/lib/clamav
. To store the defintion just mount the directory as a volume, docker run -d -p 3310:3310 -v ./clamav:/var/lib/clamav mkodockx/docker-clamav:latest
Healthcheck
The images provide with check.sh
a file to check for the healthyness of the running container.
To enable the health check configure your docker run
or compose file
.
Then, the start period should adjust to your system needs.
Finally slow internet connection, with limited cpu and IO speed might require larger values.
[Need a solution to another query? We are just a click away.]
Conclusion
Today, we saw steps followed by our Support Engineers to configure ClamAV docker image
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
0 Comments