]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Allow rspamd to run as root in Docker with --insecure flag
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 22 Oct 2025 14:02:43 +0000 (15:02 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 22 Oct 2025 14:02:54 +0000 (15:02 +0100)
Rspamd refuses to run as root by default. Since this is a test
environment in an isolated Docker container, we add the --insecure
flag to allow running as root user.

test/integration/Dockerfile.local

index 69978821d40d365ddd8e862bec8a836dec4b3958..9cf4b2f5ed59d53210bf0519c1fe3250239f8225 100644 (file)
@@ -31,4 +31,4 @@ RUN mkdir -p /var/lib/rspamd /var/log/rspamd /var/run/rspamd && \
 
 EXPOSE 11333 11334 11335
 
-CMD ["/usr/bin/rspamd", "-f", "-c", "/etc/rspamd/rspamd.conf"]
+CMD ["/usr/bin/rspamd", "-f", "-c", "/etc/rspamd/rspamd.conf", "--insecure"]