8000 Remove the support for Schema 1 images by AkihiroSuda · Pull Request #11681 · containerd/containerd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

AkihiroSuda
Copy link
Member
@AkihiroSuda AkihiroSuda commented Apr 11, 2025

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.

8000
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>
@AkihiroSuda
Copy link
Member Author

https://github.com/containerd/containerd/actions/runs/14392605005/job/40362641392?pr=11681

  [FAILED] failed to create PodSandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "0a30fad4d372ebe09e90973461697c7a9c12e7828630e90121fe628c8239c289": plugin type="portmap" failed (add): unable to create chain CNI-HOSTPORT-SETMARK: running [/usr/sbin/ip6tables -t nat -C CNI-HOSTPORT-SETMARK -m comment --comment CNI portfwd masquerade mark -j MARK --set-xmark 0x2000/0x2000 --wait]: exit status 2: ip6tables v1.8.7 (nf_tables): unknown option "--set-xmark"
  Try `ip6tables -h' or 'ip6tables --help' for more information.

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.
Copy link
Member

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.

Copy link
Member

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 :)

@github-project-automation github-project-automation bot moved this from Needs Triage to Review In Progress in Pull Request Review Apr 13, 2025
@estesp estesp moved this from Review In Progress to Merge on Green in Pull Request Review Apr 16, 2025
Copy link
Member
@mikebrow mikebrow left a 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.

@github-project-automation github-project-automation bot moved this from Merge on Green to Review In Progress in Pull Request Review Apr 16, 2025
@dmcgowan
Copy link
Member

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.

@estesp estesp added this pull request to the merge queue Apr 16, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 16, 2025
@mikebrow mikebrow added this pull request to the merge queue Apr 16, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 16, 2025
@dmcgowan dmcgowan added this pull request to the merge queue Apr 16, 2025
Merged via the queue into containerd:main with commit 757c0bd Apr 17, 2025
59 checks passed
@github-project-automation github-project-automation bot moved this from Review In Progress to Done in Pull Request Review Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants
0