moby/daemon/images
Tibor Vass 99cd23cefd Revert "Remove the rest of v1 manifest support"
This reverts commit 98fc09128b in order to
keep registry v2 schema1 handling and libtrust-key-based engine ID.

Because registry v2 schema1 was not officially deprecated and
registries are still relying on it, this patch puts its logic back.

However, registry v1 relics are not added back since v1 logic has been
removed a while ago.

This also fixes an engine upgrade issue in a swarm cluster. It was relying
on the Engine ID to be the same upon upgrade, but the mentioned commit
modified the logic to use UUID and from a different file.

Since the libtrust key is always needed to support v2 schema1 pushes,
that the old engine ID is based on the libtrust key, and that the engine ID
needs to be conserved across upgrades, adding a UUID-based engine ID logic
seems to add more complexity than it solves the problems.

Hence reverting the engine ID changes as well.

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit f695e98cb7)
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-06-18 18:54:57 +00:00
..
cache.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image.go Remove unnecessary GetImageIDAndOS use GetImage 2018-02-26 16:49:37 -05:00
image_builder.go distribution: fix passing platform struct to puller 2018-06-27 14:59:31 -07:00
image_commit.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_delete.go Various code-cleanup 2018-05-23 17:50:54 +02:00
image_events.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_exporter.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_history.go Builder: Fix CI issues 2018-03-19 14:29:36 -07:00
image_import.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_inspect.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_prune.go Extract volume interaction to a volumes service 2018-05-25 14:21:07 -04:00
image_pull.go Return "invalid parameter" (4xx) errors for distribution 2019-02-08 10:35:26 +01:00
image_push.go Revert "Remove the rest of v1 manifest support" 2019-06-18 18:54:57 +00:00
image_search.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
image_search_test.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
image_tag.go Remove unnecessary GetImageIDAndOS use GetImage 2018-02-26 16:49:37 -05:00
image_unix.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_windows.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
images.go cli: fix images filter when use multi reference filter 2018-11-22 10:33:45 +08:00
locals.go Various code-cleanup 2018-05-23 17:50:54 +02:00
service.go Revert "Remove the rest of v1 manifest support" 2019-06-18 18:54:57 +00:00