[clamav-users] Docker Connection Refused on Host

G.W. Haywood clamav at jubileegroup.co.uk
Sun Oct 10 16:35:02 UTC 2021


Hi there,

On Sun, 10 Oct 2021, Taylor Schley via clamav-users wrote:
>> On Fri, 8 Oct 2021, Taylor Schley via clamav-users wrote:
>>
>>> I have setup clamav using the docker container available on Docker
>>> Hub. Clamd is running with in the container and the socket path is
>>> mounted, however when I attempt to run `clamdtop` on the host
>>> computer I receive a connection refused response.
>>
>> The most likely explanation is that clamdtop is trying to connect to a
>> socket or port to which clamd is not connected.
>>
>> Please tell us exactly what socket or port clamd is using.
>>
>> Please show the exact command that you are using to run clamdtop, and
>> the complete response.
> 
> ClamD setup in the docker container is:
> 	`/run/clamav/clamd.socket`
>
> Which is bound to `/tmp/clamd.socket` on the host MacOS.
>
> The following works from inside of the container:
> 	`clamdtop ‘/run/clamav/clamd.socket’`
>
> The following does not work on the host MacOS.
> 	`clamdtop ‘/tmp/clamd.socket’`
> Producing this result:
> 	Connecting to: /tmp/clamd.socket
> 	connect: Connection refused
> 	Abnormal program termination: Unable to connect to all clamds in void setup_connections(int, char **) at line 1456
>
> I have already checked permissions and both the docker container and the host user have access to `/tmp/clamd.socket`

What happens if you use netcat or similar to send PING from the host
MacOS to the clamd socket in /tmp/?  See 'man clamd' for the PING
command and the expected response.

-- 

73,
Ged.


More information about the clamav-users mailing list