Fix detection of AUFS layers.

We were using the container name instead of the Docker ID which breaks
in systemd systems.

Fixes #475.
This commit is contained in:
Victor Marmol 2015-02-03 10:06:19 -08:00
parent b4a10bc17d
commit 01b456c129

View File

@ -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)