-
Notifications
You must be signed in to change notification settings - Fork 9
fix: Remove VOLUME from Dockerfile
#53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
your view very limited to compose scope, we had discussion with @fatalbanana and this directive in |
What other scopes do you have in mind specifically?
Collapsed for brevityI literally raised the PR because it caused unexpected behaviour with Compose use. I wanted to reset the container to a clean slate, and not knowing of any implicit VOLUME instruction at the time I did the usual The fact that sensitive data can leak due to the anonymous volume not being associated to the container in this context is something I'd consider harmful. I am not as familiar with the content of
?
All I'm conveying here are problems that are provable. I'm not sure why you're defending the use of Could you please at least document here publicly the value you believe Collapsed for brevityGiven that you already have explicit mounts documented to make it redundant, and that containers naturally have their own runtime layer of storage that persists within the container until the container is destroyed? (that's right it persists across container restarts without needing You accuse me of a limited scope to compose, when that's effectively the only relevant context for Update
I'm still waiting on a legitimate reason to need |
#52
FWIW, this will only realistically affect users of the image that use Docker Compose. Their data won't be lost provided they don't prune anonymous volumes before realizing, but honestly if your data is of importance to persist to disk you should not be relying on an implicit anonymous volume for this.
In the unlikely event actual users complain about the missing data, all they need to do is adjust
imageto any container image that hasVOLUME /var/lib/rspamd, it doesn't need to be rspamd due to the way Docker Compose persists the volume (associated to the service not the image), which depending on content of the volume is also a security risk in that it can leak sensitive information.Your compose example already mounts a named data volume over the implicit anonymous one from
VOLUME, so any user following that guidance already won't be affected by this change:rspamd-docker/examples/compose/compose.yaml
Lines 24 to 25 in def4084
Removing this instruction removes surprises from not expecting implicit volumes/persistence, such as for someone trying the image out.