moby/pkg/chrootarchive
Antonio Murdaca 5248f5c3d1 pkg: chrootarchive: chroot_linux: fix docker build
The path we're trying to remove doesn't exist after a successful
chroot+chdir because a / is only appended after pivot_root is
successful and so we can't cleanup anymore with the old path.
Also fix leaking .pivot_root dirs under /var/lib/docker/tmp/docker-builder*
on error.

Fix https://github.com/docker/docker/issues/22587
Introduced by https://github.com/docker/docker/pull/22506

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-05-10 00:42:49 +02:00
..
archive.go Correct build-time directory creation with user namespaced daemon 2015-10-20 08:59:48 -04:00
archive_test.go Windows CI: Unit Tests stop running failing chrootarchive tests 2016-03-01 14:28:29 -08:00
archive_unix.go Use pivot_root instead of chroot for chrootarchive 2016-05-04 19:55:34 -04:00
archive_windows.go Windows: Fix long path handling for docker build 2015-09-15 10:58:11 -07:00
chroot_linux.go pkg: chrootarchive: chroot_linux: fix docker build 2016-05-10 00:42:49 +02:00
chroot_unix.go Use pivot_root instead of chroot for chrootarchive 2016-05-04 19:55:34 -04:00
diff.go Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
diff_unix.go Remove flush(stdout) in pkg/chrootarchive/diff_unix.go and improve error reporting of flush() to fix #21103 2016-03-15 10:29:51 -07:00
diff_windows.go Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
init_unix.go Remove flush(stdout) in pkg/chrootarchive/diff_unix.go and improve error reporting of flush() to fix #21103 2016-03-15 10:29:51 -07:00
init_windows.go Windows: Docker build starting to work 2015-06-17 10:41:28 -07:00