clamav-docker icon indicating copy to clipboard operation
clamav-docker copied to clipboard

ClamAV Docker health check always fail in Docker Engine 26.0.0+

Open sammyhk opened this issue 9 months ago • 3 comments

As title, ClamAV Docker health check always fail in Docker Engine 26.0.0+ due to Docker Engine since 26.0.0 enabled IPv6 on loopback address (https://docs.docker.com/engine/release-notes/26.0/#bug-fixes-and-enhancements-2)

Always attempt to enable IPv6 on a container's loopback interface, and only include IPv6 in /etc/hosts if successful. moby/moby#47062

Which caused localhost resolved as IPv6 [::1] address and nc command in busybox fail to handle IPv6 address, causing the health check always fail: https://github.com/Cisco-Talos/clamav-docker/blob/5eb477ee8e2aec9a52188722836f0171ac9628a9/clamav/1.3/alpine/scripts/clamdcheck.sh#L6

sammyhk avatar Apr 30 '24 03:04 sammyhk