-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Remove the support for Schema 1 images #11681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Schema 1 (`application/vnd.docker.distribution.manifest.v1+prettyjws`) has been officially deprecated since containerd v1.7 (PR 6884), and disabled since v2.0 (PR 9765). Users who have been seeing warnings like `conversion from schema 1 images is deprecated` now have to rebuild the image with Schema 2 or OCI. Schema 2 was introduced in Docker 1.10 (Feb 2016), so most users should have been already using Schema 2 or OCI. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
https://github.com/containerd/containerd/actions/runs/14392605005/job/40362641392?pr=11681
The CI failure is irrelevant to the changes: |
@@ -164,7 +163,7 @@ func (c *Client) Pull(ctx context.Context, ref string, opts ...RemoteOpt) (_ Ima | |||
|
|||
if unpacker != nil && ur.Unpacks == 0 { | |||
// Unpack was tried previously but nothing was unpacked | |||
// This is at least required for schema 1 image. | |||
// This was at least required for schema 1 image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: probably can just remove this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reads fine I think ... history good :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What happens with docker schema 1 images in cache, imported or previously pulled.
The schema 1 images are currently converted to OCI images on pull/import. Those images could be exported/pushed as OCI images. |
Schema 1 (
application/vnd.docker.distribution.manifest.v1+prettyjws
) has been officially deprecated since containerd v1.7 (PR #6884), and disabled since v2.0 (PR #9765).Users who have been seeing warnings like
conversion from schema 1 images is deprecated
now have to rebuild the image with Schema 2 or OCI.Schema 2 was introduced in Docker 1.10 (Feb 2016), so most users should have been already using Schema 2 or OCI.