Aaron Lehmann
e87491eb72
Avoid redundant HEAD requests for identical layers on push
...
pushV2Tag already deduplicates layers, but the scope of this
deduplication is only for a particular tag. If we are pushing all tags
in a repository, we may check layers several times. Fix this by moving
the layersSeen map from the pushV2Tag function to the v2Pusher struct.
In addition to avoiding some useless round-trips, this makes the "docker
push" output less confusing. It formerly could contain many repeated
lines like:
124e2127157f: Image already exists
124e2127157f: Image already exists
...
Add test coverage based on the "docker push" output: a hash should not
appear multiple times when pushing multiple tags.
Fixes #14873
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com >
Upstream-commit: 810d3b2642d4a82dc186d6eff8c2e487ee624bc5
Component: engine
2015-07-22 17:54:20 -07:00
..
2015-04-23 15:40:46 +00:00
2015-06-18 14:22:40 -07:00
2015-07-14 21:52:43 +02:00
2015-07-22 14:03:50 +01:00
2015-07-02 11:45:24 -04:00
2015-07-14 21:52:43 +02:00
2015-07-14 21:52:43 +02:00
2015-07-22 11:07:41 +02:00
2015-04-23 15:35:56 -07:00
2015-07-21 15:33:05 -07:00
2015-07-14 21:52:43 +02:00
2015-06-18 12:07:58 -07:00
2015-07-14 21:52:43 +02:00
2015-06-19 09:19:09 -07:00
2015-07-09 10:09:45 -07:00
2015-06-18 11:03:07 +02:00
2015-04-23 15:35:56 -07:00
2015-07-14 21:52:43 +02:00
2015-07-14 21:52:43 +02:00
2015-07-22 14:03:50 +01:00
2015-07-22 14:03:50 +01:00
2015-07-16 13:13:47 -04:00
2015-07-14 21:52:43 +02:00
2015-07-14 21:52:43 +02:00
2015-07-21 15:19:52 -07:00
2015-07-21 15:19:52 -07:00
2015-07-21 15:19:52 -07:00
2015-07-22 14:03:50 +01:00
2015-07-21 15:33:05 -07:00
2015-06-22 04:15:41 -07:00
2015-07-22 14:03:50 +01:00
2015-07-20 14:55:40 +08:00
2015-07-21 15:19:52 -07:00
2015-04-21 10:28:52 -07:00
2015-07-20 14:55:40 +08:00
2015-07-22 14:03:50 +01:00
2015-07-20 14:55:40 +08:00
2015-07-20 14:55:40 +08:00
2015-06-10 16:14:45 -07:00
2015-07-20 14:55:40 +08:00
2015-07-22 14:03:50 +01:00
2015-07-20 14:55:40 +08:00
2015-07-20 14:55:40 +08:00
2015-07-21 15:33:05 -07:00
2015-07-22 14:03:50 +01:00
2015-07-20 14:55:40 +08:00
2015-07-20 14:44:22 +08:00
2015-07-20 16:46:51 -07:00
2015-04-21 10:28:52 -07:00
2015-07-22 11:54:35 -07:00
2015-07-20 14:44:22 +08:00
2015-07-20 14:44:22 +08:00
2015-07-14 21:52:43 +02:00
2015-07-14 21:52:43 +02:00
2015-07-14 21:52:43 +02:00
2015-04-27 15:48:29 -07:00
2015-07-22 12:51:16 -04:00
2015-07-16 13:13:47 -04:00
2015-07-22 17:54:20 -07:00
2015-07-17 04:07:12 +08:00
2015-07-22 09:02:00 +02:00
2015-07-17 04:07:12 +08:00
2015-07-16 18:02:51 -07:00
2015-07-22 16:24:22 -04:00
2015-07-22 14:03:50 +01:00
2015-07-22 14:03:50 +01:00
2015-07-22 17:55:41 +08:00
2015-07-22 17:55:41 +08:00
2015-07-22 17:55:41 +08:00
2015-07-22 17:55:41 +08:00
2015-07-21 09:32:44 -07:00
2015-07-20 14:44:22 +08:00
2015-07-20 14:44:22 +08:00
2015-07-20 14:44:22 +08:00
2015-07-20 14:44:22 +08:00
2015-07-20 14:44:22 +08:00
2015-02-17 00:43:41 -08:00
2015-02-17 00:43:41 -08:00
2015-05-21 20:34:17 -07:00
2015-07-22 14:03:50 +01:00
2015-07-22 14:03:50 +01:00
2015-07-22 14:03:50 +01:00
2015-07-22 14:03:50 +01:00
2015-02-20 23:24:30 -08:00
2015-02-20 23:24:30 -08:00
2015-03-04 14:10:37 -08:00
2015-03-20 21:54:33 -07:00
2015-07-22 14:03:50 +01:00