1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
Tibor Vass c54b717caf plugins: container-rootfs-relative paths
Legacy plugins expect host-relative paths (such as for Volume.Mount).
However, a containerized plugin cannot respond with a host-relative
path. Therefore, this commit modifies new volume plugins' paths in Mount
and List to prepend the container's rootfs path.

This introduces a new PropagatedMount field in the Plugin Config.
When it is set for volume plugins, RootfsPropagation is set to rshared
and the path specified by PropagatedMount is bind-mounted with rshared
prior to launching the container. This is so that the daemon code can
access the paths returned by the plugin from the host mount namespace.

Signed-off-by: Tibor Vass <tibor@docker.com>
2016-12-09 10:16:24 -08:00
..
aaparser fix apparmor load profile 2016-11-29 15:48:38 +08:00
archive
authorization Rename Remote API to Engine API 2016-11-22 12:49:38 +00:00
broadcaster
chrootarchive
devicemapper fix a few golint errors 2016-11-18 18:32:02 -08:00
directory
discovery fix typo 2016-11-18 15:51:36 +08:00
filenotify
fileutils Fix use of **/ in .dockerignore 2016-12-02 03:58:54 -08:00
fsutils
gitutils
graphdb Windows: Factor out sqlite 2016-12-01 09:38:08 -08:00
homedir
httputils
idtools
integration
ioutils s/bCap/bLen/ 2016-11-17 21:05:09 +00:00
jsonlog
jsonmessage
listeners
locker
longpath
loopback
mount
namesgenerator Add some adjectives to the namesgenerator 2016-11-24 18:38:04 +01:00
parsers
pidfile
platform Swap usage of LazyDLL and LoadDLL to LazySystemDLL. 2016-11-22 14:57:11 -08:00
plugingetter plugins: container-rootfs-relative paths 2016-12-09 10:16:24 -08:00
plugins plugins: container-rootfs-relative paths 2016-12-09 10:16:24 -08:00
pools
progress
promise
pubsub
random
reexec First header should be a top level header 2016-11-22 09:33:21 +08:00
registrar
signal
stdcopy
streamformatter
stringid
stringutils
symlink
sysinfo Only show global warnings once 2016-11-30 10:11:42 -08:00
system Merge pull request #28683 from darrenstahlmsft/SystemDLL 2016-11-22 16:58:30 -08:00
tailfile
tarsum
term error strings should not be capitalized or end with punctuation 2016-11-22 14:53:11 +08:00
testutil
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!