how to cache images so they are not pulled over and over from repository #2419
Unanswered
travis-jorge
asked this question in
Help & Support
Replies: 2 comments
-
Yes! that's the exact same problem I am facing with trivy-operator |
Beta Was this translation helpful? Give feedback.
0 replies
-
One thing that might enable caching (although I haven't tried it yet) is to set the # -- imageScanCacheDir the flag to set custom path for trivy image scan `cache-dir` parameter.
# Only applicable in image scan mode.
imageScanCacheDir: "/tmp/trivy/.cache"
# -- scanJobCustomVolumesMount add custom volumes mount to the scan job
scanJobCustomVolumesMount: []
# - name: var-lib-etcd
# mountPath: /var/lib/etcd
# readOnly: true
# -- scanJobCustomVolumes add custom volumes to the scan job
scanJobCustomVolumes: []
# - name: var-lib-etcd
# hostPath:
# path: /var/lib/etcd |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have noticed if i deploy the same application 10 times and 10 pods are created it is pulling that application image from the image repository 10 times. Is it possible to cache the image and then for the subsequent pods only scan from the cache or ignore the scan because it was already done once before.
Beta Was this translation helpful? Give feedback.
All reactions