From ab785195a09edc52251a76838340c8e3fd7b3899 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 12 Jan 2021 11:32:56 -0500 Subject: [PATCH] Update util.go --- engine/compiler/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/compiler/util.go b/engine/compiler/util.go index 7e8325f..29d1fda 100644 --- a/engine/compiler/util.go +++ b/engine/compiler/util.go @@ -156,7 +156,7 @@ func isRestrictedVolume(path string) bool { case strings.HasPrefix(path, "/usr/bin"): case strings.HasPrefix(path, "/mnt"): case strings.HasPrefix(path, "/media"): - case strings.Contains(path, "/sys"): + case strings.HasPrefix(path, "/sys"): case strings.HasPrefix(path, "/dev"): case strings.HasPrefix(path, "/etc/docker"): default: