diff --git a/Dockerfile b/Dockerfile index 7b4afb0..425dd83 100755 --- a/Dockerfile +++ b/Dockerfile @@ -30,9 +30,10 @@ RUN mkdir /var/run/clamav && \ # av configuration update RUN sed -i 's/^Foreground .*$/Foreground true/g' /etc/clamav/clamd.conf && \ - echo "TCPSocket 3310" >> /etc/clamav/clamd.conf && \ + sed -i '/LocalSocketGroup/d' /etc/clamav/clamd.conf && \ + echo "TCPSocket 3310" >> /etc/clamav/clamd.conf && \ sed -i 's/^Foreground .*$/Foreground true/g' /etc/clamav/freshclam.conf - + # volume provision, comment out otherwise can not change group to root # VOLUME ["/var/lib/clamav"]