[clamav-users] Docker Connection Refused on Host

Andrew C Aitchison clamav at aitchison.me.uk
Sun Oct 10 21:10:37 UTC 2021


On Sun, 10 Oct 2021, Taylor Schley via clamav-users wrote:

> 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 would imagine that a socket inside the container bound to one outside 
was intended to allow a process inside to talk to a listener outside,
but not to allow a process outside to talk to a listener inside.
I would expect a listener running in the container to use a TCP socket
for outside processes to access it.

But then, I know little about docker or any other container system.

-- 
Andrew C. Aitchison					Kendal, UK
 			andrew at aitchison.me.uk


More information about the clamav-users mailing list