containerd/remotes/docker
Akihiro Suda 42584167b7
Officially deprecate Schema 1
Schema 1 has been substantially deprecated since circa. 2017 in favor of Schema 2 introduced in Docker 1.10 (Feb 2016)
and its successor OCI Image Spec v1, but we have not officially deprecated Schema 1.

One of the reasons was that Quay did not support Schema 2 so far, but it is reported that Quay has been
supporting Schema 2 since Feb 2020 (moby/buildkit issue 409).

This PR deprecates pulling Schema 1 images but the feature will not be removed before containerd 2.0.
Pushing Schema 1 images was never implemented in containerd (and its consumers such as BuildKit).

Docker/Moby already disabled pushing Schema 1 images in Docker 20.10 (moby/moby PR 41295),
but Docker/Moby has not yet disabled pulling Schema 1 as containerd has not yet deprecated Schema 1.
(See the comments in moby/moby PR 42300.)
Docker/Moby is expected to disable pulling Schema 1 images in future after this deprecation.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-05-02 19:08:38 +09:00
..
auth Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
config test: use T.TempDir to create temporary test directory 2022-03-15 14:03:50 +08:00
schema1 Officially deprecate Schema 1 2022-05-02 19:08:38 +09:00
authorizer.go fix acr fetch token 400 2022-01-27 17:34:45 +08:00
converter.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
errcode.go docs: Various typo found by codespell 2020-12-22 13:22:16 +08:00
errdesc.go Add distribution subpkgs to core 2019-10-07 13:38:12 -04:00
fetcher_test.go Use testify 2022-04-01 18:17:58 -07:00
fetcher.go Merge pull request #5681 from kzys/info-url 2022-04-20 14:21:15 +08:00
handler_test.go Add unit test for func in remotes/docker/handler.go 2020-05-28 16:54:33 +08:00
handler.go remotes: support cross-repo-push 2019-06-13 09:51:46 +08:00
httpreadseeker.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
pusher_test.go remotes: fix dockerPusher to handle abort correctly 2021-11-26 13:43:01 +09:00
pusher.go Merge pull request #6243 from ktock/pusher-abort 2022-02-01 18:07:46 -08:00
registry_test.go Use net.IP.IsLoopback() to match loopback addresses 2021-03-15 09:57:01 +05:30
registry.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
resolver_test.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
resolver.go Officially deprecate Schema 1 2022-05-02 19:08:38 +09:00
scope_test.go Use testify 2022-04-01 18:17:58 -07:00
scope.go fix empty scopes return 2022-01-20 15:16:44 +08:00
status.go Merge pull request #6243 from ktock/pusher-abort 2022-02-01 18:07:46 -08:00