1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/distribution
Aaron Lehmann 1333ef3ca3 Fix parallel push of the same image to different registries
Layer uploads are deduplicated by a "key" made up of the layer DiffID
and the repository name. The repository name being used to form this key
was a remote version of the name that didn't include the name of the
registry. Consequently, pushes of the same layer in a repository with
the same remote name to different registries would wrongly be
deduplicated.

Correct the key by using the full name of the repository, which includes
the registry hostname as well as the image's name.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-06-17 22:27:03 -07:00
..
fixtures/validate_manifest Add distribution package 2015-11-24 09:40:24 -08:00
metadata Safer file io for configuration files 2016-04-21 11:31:15 -07:00
xfer Use describable interfaces 2016-06-06 17:49:34 -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 plugins: experimental support for new plugin management 2016-06-14 14:20:27 -07:00
pull_v1.go Fix logrus formatting 2016-06-11 13:16:55 -07:00
pull_v2.go Fix logrus formatting 2016-06-11 13:16:55 -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 Support layers from external URLs 2016-05-25 19:23:02 -07:00
pull_v2_windows.go Use describable interfaces 2016-06-06 17:49:34 -07:00
push.go Cleanup 2016-06-06 15:57:51 -07: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 Fix parallel push of the same image to different registries 2016-06-17 22:27:03 -07:00
registry.go fix typos 2016-06-02 17:17:22 +08:00
registry_unit_test.go Change APIEndpoint to contain the URL in a parsed format 2016-02-17 17:48:15 -08:00