moby--moby/pkg/archive
Serge Hallyn 617c352e92 Don't create devices if in a user namespace
If we are running in a user namespace, don't try to mknod as
it won't be allowed.  libcontainer will bind-mount the host's
devices over files in the container anyway, so it's not needed.

The chrootarchive package does a chroot (without mounting /proc) before
its work, so we cannot check /proc/self/uid_map when we need to.  So
compute it in advance and pass it along with the tar options.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2016-08-12 16:26:58 -04:00
..
testdata
README.md
archive.go Don't create devices if in a user namespace 2016-08-12 16:26:58 -04:00
archive_linux.go Fix files in subdirectories creating bad whiteout 2016-07-26 12:03:55 -07:00
archive_other.go Update archive package to support overlay whiteouts 2016-06-08 00:10:16 -07:00
archive_test.go Don't create devices if in a user namespace 2016-08-12 16:26:58 -04:00
archive_unix.go Don't create devices if in a user namespace 2016-08-12 16:26:58 -04:00
archive_unix_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
archive_windows.go Fix typos found across repository 2015-12-13 18:04:12 +02:00
archive_windows_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
changes.go Update archive package to support overlay whiteouts 2016-06-08 00:10:16 -07:00
changes_linux.go Update archive package to support overlay whiteouts 2016-06-08 00:10:16 -07:00
changes_other.go
changes_posix_test.go
changes_test.go fix typos 2016-06-02 17:17:22 +08:00
changes_unix.go
changes_windows.go
copy.go fix typos 2016-07-23 11:32:23 +08:00
copy_unix.go
copy_unix_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
copy_windows.go
diff.go Don't create devices if in a user namespace 2016-08-12 16:26:58 -04:00
diff_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
example_changes.go
time_linux.go
time_unsupported.go
utils_test.go
whiteouts.go Fix typos found across repository 2015-12-13 18:04:12 +02:00
wrap.go
wrap_test.go

README.md

This code provides helper functions for dealing with archive files.