From 4a6db6eb51a24693d2cf7bd4dbc4bca95c592ae8 Mon Sep 17 00:00:00 2001 From: David Scott Date: Tue, 27 Jun 2017 13:02:20 +0100 Subject: [PATCH] blueprints: add trim-after-delete to the docker-for-mac This starts the trim-after-delete daemon which calls `fstrim /var/lib/docker` after image deletes are observed. Signed-off-by: David Scott --- blueprints/docker-for-mac.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blueprints/docker-for-mac.yml b/blueprints/docker-for-mac.yml index c15f5af5f..d2bb2832e 100644 --- a/blueprints/docker-for-mac.yml +++ b/blueprints/docker-for-mac.yml @@ -79,6 +79,9 @@ services: "--swarm-default-advertise-addr=eth0", "--userland-proxy-path", "/usr/bin/vpnkit-expose-port", "--storage-driver", "overlay2" ] + # Monitor for image deletes and invoke a TRIM on the container filesystem + - name: trim-after-delete + image: "linuxkit/trim-after-delete:6cc6131300c287fcd40041a28119fee2fc874539" files: - path: /var/config/docker/daemon.json