From 01b456c12920e427abd47f0dbb0ec8654492e09b Mon Sep 17 00:00:00 2001 From: Victor Marmol Date: Tue, 3 Feb 2015 10:06:19 -0800 Subject: [PATCH] Fix detection of AUFS layers. We were using the container name instead of the Docker ID which breaks in systemd systems. Fixes #475. --- container/docker/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/docker/handler.go b/container/docker/handler.go index 2ad5778f..f4de504d 100644 --- a/container/docker/handler.go +++ b/container/docker/handler.go @@ -111,7 +111,7 @@ func newDockerContainerHandler( usesAufsDriver: usesAufsDriver, fsInfo: fsInfo, } - handler.storageDirs = append(handler.storageDirs, path.Join(dockerRootDir, pathToAufsDir, path.Base(name))) + handler.storageDirs = append(handler.storageDirs, path.Join(dockerRootDir, pathToAufsDir, id)) // We assume that if Inspect fails then the container is not known to docker. ctnr, err := client.InspectContainer(id)