Skip to content

Commit

Permalink
contrib: Wipe all the temporary files in the process of being fetched
Browse files Browse the repository at this point in the history
Currently when a container restarts the postStart will
wipe any dangling layers in the filesystem. This however doesn't
cover the files currently being downloaded that are prefixed with
`fetch.`, this change also takes care of them.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
  • Loading branch information
crozzy committed Jun 10, 2022
1 parent e2b8e10 commit 1d89c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/openshift/manifests/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ objects:
lifecycle:
postStart:
exec:
command: ['sh', '-c', 'rm -rf /tmp/sha*']
command: ['sh', '-c', 'rm -rf /tmp/sha* /tmp/fetch.*']
command: ['clair']
env:
- name: CLAIR_CONF
Expand Down

0 comments on commit 1d89c03

Please sign in to comment.