From d92650a922fa82852d6f3310eff24e6b8a93fb03 Mon Sep 17 00:00:00 2001 From: baude Date: Thu, 6 Sep 2018 16:10:06 -0500 Subject: use layer cache when building images to more closely mimic docker default behavior, the --layers cli option is set to true by default for podman. the buildah environment variable of BUILDAH_LAYERS is still honored and will override the command line input. this should be considered in place of PR #1383. Many thanks for Scott McCarty for inspiring this welcome change. Signed-off-by: baude Closes: #1422 Approved by: rhatdan --- vendor/github.com/projectatomic/buildah/bind/mount.go | 1 + 1 file changed, 1 insertion(+) (limited to 'vendor/github.com/projectatomic/buildah/bind/mount.go') diff --git a/vendor/github.com/projectatomic/buildah/bind/mount.go b/vendor/github.com/projectatomic/buildah/bind/mount.go index 9f55ae468..695bde554 100644 --- a/vendor/github.com/projectatomic/buildah/bind/mount.go +++ b/vendor/github.com/projectatomic/buildah/bind/mount.go @@ -133,6 +133,7 @@ func SetupIntermediateMountNamespace(spec *specs.Spec, bundlePath string) (unmou if err = unix.Mount(rootPath, rootfs, "", unix.MS_BIND|unix.MS_REC|unix.MS_PRIVATE, ""); err != nil { return unmountAll, errors.Wrapf(err, "error bind mounting root filesystem from %q to %q", rootPath, rootfs) } + logrus.Debugf("bind mounted %q to %q", rootPath, rootfs) unmount = append([]string{rootfs}, unmount...) spec.Root.Path = rootfs -- cgit v1.2.3-54-g00ecf