moby--moby/pkg
Drew Erny f19b0d72d1 fix docker logs error handling
Previously, `docker logs` (and by extension, `docker service logs`) had
an error in the way they returned errors that occurred after a stream
had already been started. Specifically, the errors were added verbatim
to the HTTP response, which caused StdCopy to fail with an esoteric
error. This change updates StdCopy to accept errors from the source
stream and then return those errors when copying to the destination
stream.

Signed-off-by: Drew Erny <drew.erny@docker.com>
2017-02-14 14:38:42 -08:00
..
aaparser
archive fix typo 2017-01-19 15:52:28 +08:00
authorization Fixed a typo within pkg/authorization/api.go 2017-01-17 21:51:16 -05:00
broadcaster
chrootarchive
devicemapper
directory
discovery
filenotify
fileutils
fsutils
gitutils
homedir
httputils
idtools
ioutils fix some ineffectual assignments 2017-01-24 11:16:19 +01:00
jsonlog
jsonmessage Bump go-units 2017-02-07 21:58:56 +01:00
listeners
locker
longpath
loopback
mount
namesgenerator Merge pull request #30430 from Thynix/30374-remove-kickass 2017-02-01 10:33:07 -05:00
parsers
pidfile
platform
plugingetter
plugins Fix deadlock on v1 plugin with activate error 2017-01-24 11:08:13 -05:00
pools
progress
promise
pubsub
random
reexec
registrar
signal
stdcopy fix docker logs error handling 2017-02-14 14:38:42 -08:00
streamformatter Bump go-units 2017-02-07 21:58:56 +01:00
stringid
stringutils
symlink
sysinfo
system Windows: Use sequential file access 2017-01-23 10:25:36 -08:00
tailfile
tarsum
templates Add `truncate` function for Go templates 2017-01-30 13:33:16 -08:00
term fix typo 2017-01-19 15:52:28 +08:00
testutil
tlsconfig
truncindex
urlutil
useragent
README.md

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!