1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/distribution
Yong Tang 7368e41c07 Docker pull/push with max concurrency limits.
This fix tries to address issues raised in #20936 and #22443
where `docker pull` or `docker push` fails because of the
concurrent connection failing.
Currently, the number of maximum concurrent connections is
controlled by `maxDownloadConcurrency` and `maxUploadConcurrency`
which are hardcoded to 3 and 5 respectively. Therefore, in
situations where network connections don't support multiple
downloads/uploads, failures may encounter for `docker push`
or `docker pull`.

This fix tries changes `maxDownloadConcurrency` and
`maxUploadConcurrency` to adjustable by passing
`--max-concurrent-uploads` and `--max-concurrent-downloads` to
`docker daemon` command.

The documentation related to docker daemon has been updated.

Additional test case have been added to cover the changes in this fix.

This fix fixes #20936. This fix fixes #22443.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-05-11 19:44:54 -07:00
..
fixtures/validate_manifest
metadata Safer file io for configuration files 2016-04-21 11:31:15 -07:00
xfer Docker pull/push with max concurrency limits. 2016-05-11 19:44:54 -07:00
errors.go distribution: errors: do not retry on too many requests from registry 2016-05-04 18:57:55 +02:00
pull.go fix typos in CHANGELOG.md and pull.go 2016-04-29 23:33:15 +08:00
pull_v1.go Merge pull request #21676 from aaronlehmann/tmpfile-close 2016-03-31 11:49:37 +02:00
pull_v2.go Vendor distribution to correct config blob media type in schema2 manifest 2016-04-11 17:29:17 -07:00
pull_v2_test.go Windows CI Unit Test: Distribution turn off failing tests 2016-02-28 20:02:51 -08:00
pull_v2_unix.go
pull_v2_windows.go Windows: Support non-base-layered images 2016-04-07 17:52:26 -07:00
push.go Improved message when pushing a non-existant image 2016-04-03 16:25:07 -04:00
push_v1.go Pass upstream client's user agent through to registry on operations beyond pulls 2016-03-21 14:31:47 -07:00
push_v2.go Vendor distribution to correct config blob media type in schema2 manifest 2016-04-11 17:29:17 -07:00
registry.go Respect ALL_PROXY during registry operations 2016-04-25 15:08:30 -04:00
registry_unit_test.go Change APIEndpoint to contain the URL in a parsed format 2016-02-17 17:48:15 -08:00