mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +00:00
Run TRIM on Windows every 15m
As the Windows virtual device supports TRIM we can run this to free up disk space frequently. Not recommended to run on physical devices this often. See https://github.com/docker/pinata/issues/5298 Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
e35e337503
commit
41f4841399
4
alpine/etc/periodic/15m/trim
Executable file
4
alpine/etc/periodic/15m/trim
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Windows always has TRIM support, clean out unused frequently
|
||||
[ "$(mobyplatform)" = "windows" ] && /sbin/fstrim /var
|
Loading…
Reference in New Issue
Block a user