Sign inSign up

shaharil/docker-clamav

By shaharil

•Updated almost 7 years ago

Image
0

108

shaharil/docker-clamav repository overview

⁠hub.docker.com/tiredofit/clamav

⁠Introduction

Dockerfile to build an Clam Antivirus⁠ container image to scan files or most commonly, mail messages.

  • This Container uses a customized Alpine base⁠ which includes s6 overlay⁠ enabled for PID 1 Init capabilities, zabbix-agent⁠ for individual container monitoring, Cron also installed along with other tools (bash,curl, less, logrotate, nano, vim) for easier management.

Changelog⁠

⁠Authors

⁠Table of Contents

⁠Prerequisites

This container doesn't do much on it's own unless you use an additional service or communicator to talk to it!

⁠Installation

Automated builds of the image are available on Registry⁠ and is the recommended method of installation.

docker pull hub.docker.com/tiredofit/clamav:(imagetag)

The following image tags are available:

  • latest - Most recent release of ClamAV w/Alpine Linux 3.6

⁠Quick Start

⁠Configuration

⁠Data-Volumes

The container will look for definition files upon startup in /data and if not found, download them. 6 times a day it will also check for updated definitions.

The following directories are used for configuration and can be mapped for persistent storage.

DirectoryDescription
/dataDatabase Directory
/var/log/clamavLog Files
⁠Environment Variables

Along with the Environment Variables from the Base image⁠, below is the complete list of available options that can be used to customize your installation.

ParameterDescription
MAX_SCAN_SIZEAmount of data scanned for each file - Default 150M
MAX_FILE_SIZEDon't scan files larger than this size - Default 30M
MAX_RECURSIONHow many nested archives to scan - Default 10
MAX_FILESNumber of files to scan withn archive - Default 15000
MAX_EMBEDDEDPEMaximum file size for embedded PE - Default 10M
MAX_HTMLNORMALIZEMaximum size of HTML to normalize - Default 10M
MAX_HTMLNOTAGSMaximum size of Normlized HTML File to scan- Default 2M
MAX_SCRIPTNORMALIZEMaximum size of a Script to normalize - Default 5M
MAX_ZIPTYPERCGMaximum size of ZIP to reanalyze type recognition - Default 1M
MAX_PARTITIONSHow many partitions per Raw disk to scan - Default 128
MAX_ICONSPEHow many Icons in PE to scan - Default 200
PCRE_MATCHLIMITMaximum PCRE Match Calls - Default 10000
PCRE_RECMATCHLIMITMaximum Recursive Match Calls to PCRE - Default 10000
⁠Networking
PortDescription
3310ClamD Listening Port

⁠Maintenance

⁠Shell Access

For debugging and maintenance purposes you may want access the containers shell.

docker exec -it (whatever your container name is e.g. clamav) bash

⁠References

Tag summary

Content type

Image

Digest

Size

33.1 MB

Last updated

almost 7 years ago

docker pull shaharil/docker-clamav