From 79488baa4da83c8ee90f88a2324593aaca0fecde Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Sat, 26 Sep 2015 18:51:36 -0700 Subject: [PATCH] Add all containers when searching for images that are still in used, since the container using the image may be stopped --- client/driver/docker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/driver/docker.go b/client/driver/docker.go index 954c7552f..295dce7a6 100644 --- a/client/driver/docker.go +++ b/client/driver/docker.go @@ -344,6 +344,7 @@ func (h *dockerHandle) Kill() error { err = h.client.RemoveImage(h.imageID) if err != nil { containers, err := h.client.ListContainers(docker.ListContainersOptions{ + All: true, Filters: map[string][]string{ "image": []string{h.imageID}, },