Cisco-Talos / clamav-docker

Dockerfiles for the ClamAV project
38 stars 21 forks source link

clamav pod on arm64 fails with 'nc command not found' error #28

Closed Anand03 closed 1 year ago

Anand03 commented 1 year ago

clamav pod fails with below error when running on arm64 machine

Warning Unhealthy 4s kubelet Readiness probe failed: ERROR: Unable to contact server /usr/local/bin/clamdcheck.sh: 6: nc: not found

I had to add netcat \ installation to RUN apt update && apt install -y \ in the dockerfile at both stages to fix the issue.

Can you please add it to the main branch. I was not able to create a PR for this.

micahsnyder commented 1 year ago

@Anand03 Sure I'd be happy to make a PR and fix it in the main branch.

You mention adding netcat to be installed for both stages. I don't think it should be required for the 1st stage though. Is there something I may be missing?

Anand03 commented 1 year ago

@micahsnyder Thanks for the reply. And yes, inclusion in just the second stage should do the job.