Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clamscan command cann't be executed problem #21

Open
Fredericwu opened this issue Aug 29, 2022 · 0 comments
Open

clamscan command cann't be executed problem #21

Fredericwu opened this issue Aug 29, 2022 · 0 comments
Labels

Comments

@Fredericwu
Copy link

Summary

clamav pod is runnning but clamscan command cann't be executed problem

Steps to reproduce

root@vplx2kn1:~/fred_yaml# cat clamav_2.yaml
apiVersion: v1
kind: Pod
metadata:
name: clamav4
spec:
containers:

  • name: clamav4
    image: tiredofit/clamav:latest
    ports:
    • containerPort: 9004
      volumeMounts:
    • name: logs-volume
      mountPath: /mnt
      args: ["/bin/sh -c clamscan -r /mnt > clamav.log"]
      volumes:
  • name: logs-volume
    hostPath:
    path: /home/fxtadmin/fred_test

root@vplx2kn1:~/fred_yaml# kubectl apply -f clamav_2.yaml
pod/clamav4 configured

What is the expected correct behavior?

pod runging but clamscan command cann't be executed

Relevant logs and/or screenshots

root@vplx2kn1:~/fred_yaml# kubectl logs clamav4
,---.
,--------.,--. ,--. ,---. ,--. ,--------.| |
'--. .--'--',--.--. ,---. ,-| | ,---. / .-' | | '--. .--'| .' | | ,--.| .--'| .-. :' .-. | | .-. || -, | | | | | |
| | | || | \ --.\ -' | ' '-' '| .-' | |.--.| | --'
--' --'--' ----' ---' ---' --' --''--'`--' .--.
'--'
Image: tiredofit/clamav | Version 2.4.2 Type 'image_changelog' for details
Repository/Issues/Support: https://github.com/tiredofit/docker-clamav/
Sponsor me for development and upkeep: https://www.tiredofit.ca/sponsor

2022-08-29.08:13:40 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix modern'
2022-08-29.08:13:40 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
2022-08-29.08:13:40 [NOTICE] ** [clamav] Configuring Logging
2022-08-29.08:13:41 [INFO] ** [clamav] Setting up Configuration for the first time
2022-08-29.08:13:41 [NOTICE] ** [clamav] Generating Configuration for Clam Antivirus
2022-08-29.08:13:41 [NOTICE] ** [clamav] Generating Configuration for Definitions Updater
2022-08-29.08:13:41 [WARN] ** [clamav] No Virus Definitions Found! Downloading..
2022-08-29.08:14:13 [INFO] ** [clamav] Container Initialization Complete
/run/s6/basedir/scripts/rc.init: line 60: /bin/sh -c clamscan -r /mnt > clamav.log: not found
root@vplx2kn1:~/fred_yaml#

Environment

  • Image version / tag: image: tiredofit/clamav:latest
  • Host OS: ubuntu 18.04

If you need more information,please let me know!

@Fredericwu Fredericwu added the bug label Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant