From 672b85cfe35f6c3065a6670f4ef31969da1fbd23 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Sun, 9 Oct 2016 21:16:58 +0200 Subject: [PATCH] Remove volumes when deleting instances Fixes #1 --- services/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/docker.go b/services/docker.go index 9734c4e..c88130d 100644 --- a/services/docker.go +++ b/services/docker.go @@ -94,5 +94,5 @@ func CreateInstance(net string) (*ptypes.Instance, error) { } func DeleteContainer(id string) error { - return c.ContainerRemove(context.Background(), id, types.ContainerRemoveOptions{Force: true}) + return c.ContainerRemove(context.Background(), id, types.ContainerRemoveOptions{Force: true, RemoveVolumes: true}) }