[clamav-users] Docker Connection Refused on Host

Taylor Schley taylorschley at me.com
Sun Oct 10 17:16:17 UTC 2021


Here is the response:

2021/10/10 12:14:57 socat[38274] E connect(5, LEN=19 AF=1 "/tmp/clamd.socket", 19): Connection refused


> On Oct 10, 2021, at 11:35 AM, G.W. Haywood via clamav-users <clamav-users at lists.clamav.net> wrote:
> 
> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20211010/7f8bc354/attachment.htm>


More information about the clamav-users mailing list