lokori/clamav-rest
ClamAV server with REST API from https://github.com/solita/clamav-rest running.
1M+
The server implementation and corresponding Dockerfile are on github: https://github.com/solita/clamav-rest This is a precompiled and packaged docker container running the server. You also need the ClamAV virus scanner for the REST endpoint. I've used https://hub.docker.com/r/mkodockx/docker-clamav/ for this.
To run use something like this.
Start ClamAV server, using https://hub.docker.com/r/mkodockx/docker-clamav/ here
docker run -d --name clamav-server -p 3310:3310 mkodockx/docker-clamav
Test that it's running ok:
curl localhost:3310
UNKNOWN COMMAND
Start the REST API image, clamd-server docker container linked to this container.
docker run -d -e 'CLAMD_HOST=clamav-server' -p 8080:8080 --link clamav-server:clamav-server -t -i lokori/clamav-rest
Test the REST api:
curl localhost:8080
Clamd responding: true
You can parametrize the ports and servers. In a real environment it makes no sense to fully open ports to localhost in this manner.
docker pull lokori/clamav-rest