1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
Brian Goff e6eef7eb49 Fix issue with cp to container volume dir
In some cases, attempting to `docker cp` to a container's volume dir
would fail due to the volume mounts not existing after performing a
bind-mount on the container path prior to doing a pivot_root.

This does not seem to be effecting all systems, but was found to be a
problem on centos.
The solution is to use an `rbind` rather than `bind` so that any
existing mounts are carried over.

The `MakePrivate` on `path` is no longer neccessary since we are already
doing `MakeRPrivate` on `/`.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-11-03 16:01:15 -04:00
..
aaparser Fix apparmor profile installation 2016-09-29 18:47:20 -05:00
archive Merge pull request #27705 from dmcgowan/fix-27298 2016-11-02 10:13:30 +01:00
authorization Update authz plugin list on failure. 2016-10-28 11:16:06 -07:00
broadcaster
chrootarchive Fix issue with cp to container volume dir 2016-11-03 16:01:15 -04:00
devicemapper devmapper: prevent libdevmapper from deleting device symlinks in RemoveDeviceDeferred 2016-08-23 23:58:53 +08:00
directory
discovery Fix logrus formatting 2016-10-31 22:05:01 -06:00
filenotify Modify several fun notes in fsnotify.go 2016-07-24 13:35:33 +08:00
fileutils all: use strings.Contains instead Index 2016-10-13 15:55:41 -07: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 Add support for looking up user/groups via getent 2016-10-28 19:06:07 -04:00
integration Reduce TestRunCommandWithTimeoutKilled flakiness 2016-10-10 17:31:37 -07:00
ioutils Merge pull request #25523 from dmcgowan/fsync-layer-filestore 2016-09-08 10:03:12 -07:00
jsonlog
jsonmessage Extract stream output handling to a new type. 2016-09-08 12:33:41 -04:00
listeners
locker
longpath
loopback Fix logrus formatting 2016-06-11 13:16:55 -07:00
mount
namesgenerator Add Joan Clarke to name collection 2016-08-24 01:58:48 -07:00
parsers Fix TestUpdateKernelMemoryUninitialized on new kernel version 2016-08-02 13:17:20 +08:00
pidfile mkdirall on the PID file path 2016-10-25 09:11:20 -07:00
platform Windows: stats support 2016-09-16 11:56:15 -07:00
plugingetter Add plugingetter to pkg. 2016-10-04 12:03:29 -07:00
plugins prevent data race in pkg/plugins 2016-10-21 13:28:13 -07:00
pools pkg/pool: no need for double pointer for sync.Pool 2016-10-20 15:27:38 -07:00
progress progress: Rate limit progress bar output 2016-09-14 17:23:16 -07:00
promise
pubsub
random
reexec make more pkgs support darwin 2016-08-10 22:56:05 +08:00
registrar
signal daemon: always dump stack to file 2016-11-02 11:22:43 -07:00
stdcopy stdcopy: remove logrus debug messages; makes it easier to vendor without the dependency. 2016-10-26 16:29:37 -07:00
streamformatter
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 Don't attempt to evaluate drive root on Windows 2016-09-08 13:52:54 -07:00
sysinfo Implementing support for --cpu-rt-period and --cpu-rt-runtime so that 2016-10-26 11:33:06 -04:00
system Windows: Add comment re client containers 2016-10-25 10:30:00 -07:00
tailfile
tarsum add defer file.Close to avoid potential fd leak 2016-08-10 08:36:09 +08:00
term Force input stream ANSI emulation for ConsoleZ 2016-10-05 12:42:48 -07:00
testutil Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
tlsconfig Use system ca pool from tlsconfig 2016-10-31 14:52:07 -07:00
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!