Skip to content

opencloud-eu/container-clamav-icap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClamAV + c-icap Docker Container

This container provides a lightweight Debian-based image that runs ClamAV integrated with c-icap for virus scanning over ICAP. It's suitable for use with proxies (like Squid) that support ICAP for content filtering.

🧰 Features

  • Based on debian:bookworm-slim
  • Installs:
    • clamav
    • clamav-daemon
    • c-icap
    • libicapapi-dev
    • libc-icap-mod-virus-scan
  • Fresh virus definitions via freshclam at build time
  • Handles headless install issues (debconf, service start)
  • Proper permissions for ClamAV and c-icap runtime
  • Simple entrypoint.sh for container initialization
  • The versioning follows the ClamAV version used in the base image

🔍 Service Details

The container exposes two ICAP services on port 1344:

  • avscan - Main antivirus scanning service
  • srv_clamav - Legacy service name (maintained for backward compatibility)

🚀 Usage

Once the container is running, you can access the ICAP services at:

  • icap://localhost:1344/avscan
  • icap://localhost:1344/srv_clamav

⚙️ Configuration Options

🔌 Port Mapping

By default, the service runs on port 1344. To use a different port:

docker run -d \
  --name clamav-icap \
  -p 8080:1344 \
  opencloudeu/clamav-icap

🛠 Build

docker build -t clamav-c-icap .

About

Container for ClamAV via ICAP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published