Skip to content

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

Open
@sammyhk

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions