Skip to content

add "go" redirect for deprecated image formats#17858

Merged
thaJeztah merged 1 commit intodocker:mainfrom
thaJeztah:legacy_image_redirect
Aug 2, 2023
Merged

add "go" redirect for deprecated image formats#17858
thaJeztah merged 1 commit intodocker:mainfrom
thaJeztah:legacy_image_redirect

Conversation

@thaJeztah
Copy link
Member

We currently print the full URL in warnings, and we may want to create a better page for this at some point;

docker pull docker:1.0.1
1.0.1: Pulling from library/docker
Image docker.io/library/docker:1.0.1 uses outdated schema1 manifest format. Please upgrade to a schema2 image for better future compatibility. More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/

Adding a new "/go/" redirect, so that we can point it to the relevant content as we go. I tried to keep the URl somewhat short, so didn't include "deprecated", but naming is hard, so input welcome.

Related issues (optional)

@thaJeztah thaJeztah requested review from crazy-max and dvdksn August 1, 2023 18:48
@netlify
Copy link

netlify bot commented Aug 1, 2023

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 8488da0
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/64ca436df81ce700082bed65
😎 Deploy Preview https://deploy-preview-17858--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

_redirects.yml Outdated
# - Docker Image manifest version 2, schema 1 (https://github.com/distribution/distribution/blob/ff2bce27319a0a0bca924820c353fae3b9046e91/docs/spec/manifest-v2-1.md)
#
# TODO(thaJeztah) We need a better page describing the image formats (and deprecated ones)
- /go/image-specs/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this redirect is meant to handle specifically the deprecated format, maybe we should include that in the slug.

Suggested change
- /go/image-specs/
- /go/deprecated-image-specs/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'm fine with that. Let me update 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think plural or singular would be better? What feels most natural to you to type?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either is fine for me

We currently print the full URL in warnings, and we may want to create a
better page for this at some point;

    docker pull docker:1.0.1
    1.0.1: Pulling from library/docker
    Image docker.io/library/docker:1.0.1 uses outdated schema1 manifest format. Please upgrade to a schema2 image for better future compatibility. More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/

Adding a new "/go/" redirect, so that we can point it to the relevant
content as we go. I tried to keep the URl  somewhat short, so didn't
include "deprecated", but naming is hard, so input welcome.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the legacy_image_redirect branch from 00500ff to 8488da0 Compare August 2, 2023 11:52
@thaJeztah
Copy link
Member Author

Updated 👍 kept it plural

@thaJeztah thaJeztah merged commit 280271d into docker:main Aug 2, 2023
@thaJeztah thaJeztah deleted the legacy_image_redirect branch August 2, 2023 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants