1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
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
..
aaparser
archive Don't create devices if in a user namespace 2016-08-12 16:26:58 -04:00
authorization Enable to dynamically reload authorization plugins via daemon.config 2016-07-30 14:59:07 +03:00
broadcaster
chrootarchive Don't create devices if in a user namespace 2016-08-12 16:26:58 -04:00
devicemapper Fixes Issue # 23418: Race condition between device deferred removal and resume device. 2016-08-02 10:33:58 -04:00
directory Fix filepath.Walk misusage in pkg/directory 2016-05-30 07:40:46 +00:00
discovery Refactoring for logrus formatting 2016-07-18 12:53:34 -06:00
filenotify Modify several fun notes in fsnotify.go 2016-07-24 13:35:33 +08:00
fileutils fix typos 2016-07-23 11:32:23 +08:00
gitutils Fix gitconfig dependency in pkg/gitutils.TestCheckoutGit 2016-06-02 17:44:09 +09:00
graphdb
homedir
httputils fix typos 2016-06-02 17:17:22 +08:00
idtools
integration return err when stack name does not exist 2016-07-12 00:59:30 +08:00
ioutils Set permission on atomic file write 2016-06-29 13:09:13 -07:00
jsonlog
jsonmessage fix typos 2016-06-02 17:17:22 +08:00
listeners
locker
longpath
loopback Fix logrus formatting 2016-06-11 13:16:55 -07:00
mflag Merge pull request #24717 from icaoweiwei/patch_2016-07-16_1 2016-08-12 10:54:01 -07:00
mount Inconsistent --tmpfs behavior 2016-05-26 19:28:18 -07:00
namesgenerator Add entries for Hugh Beaver, Lois Haibt and some more adjectives 2016-08-01 16:05:27 -04:00
parsers Fix TestUpdateKernelMemoryUninitialized on new kernel version 2016-08-02 13:17:20 +08:00
pidfile make pkg pidfile support darwin 2016-08-01 22:01:20 +08:00
platform
plugins Fix pkg/plugins TLSConfig panic 2016-07-26 08:53:54 +00:00
pools pkg/pools: avoid copy of sync.Pool 2016-06-23 16:09:13 -07:00
progress fix typos 2016-06-02 17:17:22 +08:00
promise
pubsub
random
reexec make more pkgs support darwin 2016-08-10 22:56:05 +08:00
registrar
signal Windows: Stack dump to file 2016-07-21 20:04:47 -07:00
stdcopy
streamformatter Fix pkg/streamformatter.TestJSONFormatProgress 2016-05-31 09:09:06 +00:00
stringid Minor refactor and beter coverage for pkg/stringid 2016-07-20 00:23:06 +02:00
stringutils Implement stringutils.Ellipsis() 2016-08-11 14:14:06 +02:00
symlink
sysinfo make more pkgs support darwin 2016-08-10 22:56:05 +08:00
system make more pkgs support darwin 2016-08-10 22:56:05 +08:00
tailfile
tarsum add defer file.Close to avoid potential fd leak 2016-08-10 08:36:09 +08:00
term make more pkgs support darwin 2016-08-10 22:56:05 +08:00
testutil Use newer default values for mounts CLI 2016-07-06 22:34:39 -04:00
tlsconfig
truncindex
urlutil
useragent
README.md

pkg/ is a collection of utility packages used by the Docker project without being specific to its internals.

Utility packages are kept separate from the docker core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the Docker organization, to facilitate re-use by other projects. However that is not the priority.

The directory pkg is named after the same directory in the camlistore project. Since Brad is a core Go maintainer, we thought it made sense to copy his methods for organizing Go code :) Thanks Brad!

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!