Comments (7)
I am not the maintainer here ;) Just try to help out!
Wondering why this happens at all, afaik it should not. How have you definded nextcloud_clamav
? Is it used by another service as well?
On the other hand I would just ditch the VOLUME
declaration in the Dockerfile and add documentation for the sample compose which directory should be mapped. Once my current multi-arch PR is approved I could issue a new PR to remove the Dockerfile VOLUME
.
from docker-clamav.
I would treat the docker-compose provided in here just a very basic example. Will try to work in the volume issue this week and update the sample compose and readme then.
- remove
VOLUME
from Dockerfiles - update README with persistency instruction
- update sample compose to reflect volume usage
from docker-clamav.
I think it is valid to declare the VOLUME
within the Dockerfile. You still can specify where to mount it (docker run -v /my/path/:/var/lib/clamav
).
Can you post your compose file?
from docker-clamav.
I tried that and it just makes two volumes. Both the one you specified and the one I have listed in my compose file. The AV part of my compose file looks like this. Tell me if you need the entire file.
av:
image: mkodockx/docker-clamav:alpine
container_name: nextcloud-clamav
networks:
- network1
depends_on:
- reverse_proxy
volumes:
- nextcloud_clamav:/var/lib/clamav
environment:
- NETWORK_ACCESS=internal
restart: unless-stopped
from docker-clamav.
I have defined nextcloud_clamav like a volume. The volume declaration being removed from the docker file should fix this problem. This declaration should be in the docker compose file or in examples of terminal commands.
Summing it up, in addition to removing the volume declaration line in the docker file, the volume declaration line needs to be added to docker compose. Also, the example terminal lines needs to be updated to include the creation of the volume. I would also recommend adding:
restart: unless-stopped
For the purpose of this repository the changes would look like this.
av:
debian: image: mkodockx/docker-clamav
image: mkodockx/docker-clamav:alpine
container_name: nextcloud-clamav
networks:
- network1
depends_on:
- reverse_proxy
volumes:
- clamav:/var/lib/clamav
restart: unless-stopped
The examples for terminal would be changed to:
docker run -d -p 3310:3310 -v clamav:/var/lib/clamav mkodockx/docker-clamav:alpine
docker run -v clamav:/var/lib/clamav mkodockx/docker-clamav:alpine-edge
from docker-clamav.
thanks to @WhiteBahamut closed by #72
from docker-clamav.
more PRs might come as I start to use the images more myself ;-)
from docker-clamav.
Related Issues (20)
- init contributors HOT 62
- detailed logs for clamav HOT 2
- bootstrap.sh crashes container HOT 1
- Question to help fix a configuration HOT 4
- Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: Connection refused HOT 4
- Container Won't Start Up HOT 12
- Reasoning for non-default config options HOT 2
- ClamAV installation is outdated HOT 1
- upgrade libcrypto1.1 and libssl1.1 for vulnerability issue HOT 5
- upgrade busybox, ssl_client , zlib and libcurl for vulnerability issues HOT 1
- upgrade gzip and zlib1g for vulnerability issues HOT 3
- mkodockx/docker-clamav:alpine-idb-amd64 does not respond in Azure HOT 2
- Root Login to Container HOT 4
- Upgrade openssl to the newer version (>1.1.1q-r0) for fixing the CVE-2022-2097 HOT 2
- Custom Dockerfile From ClamAV Base Image with Server HOT 1
- Update Error HOT 1
- Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory HOT 2
- docker image rebuild HOT 2
- Memory Spike / Slowly decrease over time HOT 3
- Still maintained?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-clamav.