Try the alpine based version:
docker run -d -p 3310:3310 mkodockx/docker-clamav:alpine
Alpine version reduces foot print to something about less than 5%, compressed size in docker hub is 6.72 MB compared to debian 216.21 MB.
Check out latest alpine-edge version (for latest clamav releases):
docker run mkodockx/docker-clamav:alpine-edge
Hint: Take a look at the alpine-edge readme before using.
Find the docker hub images at hub.docker.com
Dockerized open source antivirus daemons for use with
- file sharing containers like Nextcloud or
- to use it via a REST proxy like @solita made clamav-rest or
- to directly connect to clamav via TCP port
3310
ClamAV daemon as a Docker image. 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
.
Thanks to @mchus proxy configuration is possible.
- HTTPProxyServer: Allows to set a proxy server
- HTTPProxyPort: Allows to set a proxy server port
Find the latest releases at the official docker hub registry.
- OpenShift support in kuanfandevops fork
docker run -d -p 3310:3310 mk0x/docker-clamav
docker run -d -p 3310:3310 mk0x/docker-clamav:alpine
or linked (recommended)
docker run -d --name av mkodockx/docker-clamav(:alpine)
docker run -d --link av:av application-with-clamdscan-or-something
See example with Nextcloud at docker-compose.yml.