From 92e9d7891e2d68b119936509e780f3a3d93d8780 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 10 Aug 2018 14:46:59 -0400 Subject: We need to sort mounts so that one mount does not over mount another. Currently we add mounts from images, volumes and internal. We can accidently over mount an existing mount. This patch sorts the mounts to make sure a parent directory is always mounted before its content. Had to change the default propagation on image volume mounts from shared to private to stop mount points from leaking out of the container. Also switched from using some docker/docker/pkg to container/storage/pkg to remove some dependencies on Docker. Signed-off-by: Daniel J Walsh Closes: #1243 Approved by: mheon --- libpod/in_memory_state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod/in_memory_state.go') diff --git a/libpod/in_memory_state.go b/libpod/in_memory_state.go index 8bdd0881c..0327b331e 100644 --- a/libpod/in_memory_state.go +++ b/libpod/in_memory_state.go @@ -3,7 +3,7 @@ package libpod import ( "strings" - "github.com/docker/docker/pkg/truncindex" + "github.com/containers/storage/pkg/truncindex" "github.com/pkg/errors" "github.com/projectatomic/libpod/pkg/registrar" ) -- cgit v1.2.3-54-g00ecf