mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-07 09:51:09 +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:
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
|
Reference in New Issue
Block a user