Skip to content
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

ClamAV Docker health check always fail in Docker Engine 26.0.0+ #52

Open
sammyhk opened this issue Apr 30, 2024 · 1 comment
Open

ClamAV Docker health check always fail in Docker Engine 26.0.0+ #52

sammyhk opened this issue Apr 30, 2024 · 1 comment

Comments

@sammyhk
Copy link

sammyhk commented Apr 30, 2024

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:

if [ "$(echo "PING" | nc localhost 3310)" != "PONG" ]; then

@sammyhk sammyhk changed the title Clamav Docker health check always fail in Docker CE 26.0.0+ Clamav Docker health check always fail in Docker Engine 26.0.0+ Apr 30, 2024
@sammyhk sammyhk changed the title Clamav Docker health check always fail in Docker Engine 26.0.0+ ClamAV Docker health check always fail in Docker Engine 26.0.0+ Apr 30, 2024
@sammyhk
Copy link
Author

sammyhk commented Apr 30, 2024

Suggest to fix by hard-coding the the loopback IPv4 address 127.0.0.1 instead of using localhost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant