Skip to content
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

trusted-content: restructure doi section #19745

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

dvdksn
Copy link
Collaborator

@dvdksn dvdksn commented Apr 5, 2024

Description

Restructure the content on Docker Official Images, making it a section instead of a single page. Add more details about how to interpret DOI tags, and the different variants that exist.

Preview

Related issues or tickets

Closes docker-library/official-images#14346

Reviews

  • Technical review
  • Editorial review

@github-actions github-actions bot added the area/release Relates to CI or deployment label Apr 5, 2024
Copy link

netlify bot commented Apr 5, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit c09ec31
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/6618e3322d8937000875d5ea
😎 Deploy Preview https://deploy-preview-19745--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.

@github-actions github-actions bot added area/hub Issue affects Docker Hub area/build Relates to Dockerfiles or docker build command area/security labels Apr 5, 2024
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

Thanks! this looks like a good start; I left some comments for consideration.

I think it would be great to (as follow-ups) start incorporating some of the content described in the "7 ways Docker Official Images help secure the software supply chain" section from the blog-post;

  • outline what users can expect w.r.t. (security) updates
  • properties of official images that help with a secure supply chain (SBOM, attestation, Scout, etc).

Copy link
Member

Choose a reason for hiding this comment

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

Not sure how much history we need to preserve, but perhaps we could do an intermediate commit that only does the rename (official-images.md -> official-images/_index.md)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did that initially but then I squashed by accident 😆 I think it's fine to leave like this.

Because of their ease of use and wide applicability, `latest` images are often
used in getting-started guides, but they're not recommended for production use.

## Slim images
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps not for this PR (which mostly lays the groundwork to allow adding more sections), but wondering if we should somewhere mention the common use of debian as base, and why it's chosen.

Copy link
Collaborator Author

@dvdksn dvdksn Apr 5, 2024

Choose a reason for hiding this comment

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

Yes that would be good. We also have this page which is related, but a little bit of an oddity in the "build" section: https://docs.docker.com/build/building/base-images/

Not sure what to do about that if anything. Just an observation... Maybe there's a home for "base images" somewhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

@thaJeztah I'm not clear on what you are getting at. The debian DOI is used as a base image in 525 DOI variants, ubuntu in 534, and alpine in 495. Interestingly, eclipse-termurin is used as a base image in 400 other DOI. So the use of debian as a base image is not markedly more common than other DOI.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, interesting; I recall it used to be debian (as a default?), but maybe that changed (debian generally considered more "stable", but ubuntu having more up to date packages)

Copy link
Member

Choose a reason for hiding this comment

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

If we look at repositories instead of individual tags, we get a slightly different story (the point about Ubuntu still holds, but it also helps highlight that Eclipse Temurin is a special case because Java is, not because Temurin itself really is):

$ bashbrew children --uniq debian | cut -d: -f1 | sort -u | wc -l
66
$ bashbrew children --uniq ubuntu | cut -d: -f1 | sort -u | wc -l
45
$ bashbrew children --uniq eclipse-temurin | cut -d: -f1 | sort -u | wc -l
23

@dvdksn dvdksn force-pushed the doi-updates branch 2 times, most recently from 2d3b177 to bc90629 Compare April 5, 2024 14:34
Copy link
Contributor

@whalelines whalelines left a comment

Choose a reason for hiding this comment

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

Thanks for adding this. I've provided a few changes you are free to ignore.

content/trusted-content/official-images/contributing.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/contributing.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/contributing.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/using.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/using.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/using.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/using.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/using.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/using.md Outdated Show resolved Hide resolved
@dvdksn
Copy link
Collaborator Author

dvdksn commented Apr 8, 2024

thanks for all the suggestions @whalelines 🎉 I've incorporated them

@dvdksn dvdksn requested a review from a team April 8, 2024 07:42

> **Note**
>
> Docker Official Images are the intellectual property of Docker.
Copy link
Member

Choose a reason for hiding this comment

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

So it doesn't get lost, we do have a community request to dig more into this: docker-library/official-images#14346

The `latest` tag for a Docker Official Image is often optimized for ease of use
and includes a wide variety of useful software, such as developer and build tools.
Because of their ease of use and wide applicability, `latest` images are often
used in getting-started guides, but they're typically not optimized for production use.
Copy link
Member

Choose a reason for hiding this comment

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

The way I usually explain to maintainers for how to choose which variant to put latest on is "Which image would you suggest users should use if they have no idea or are unfamiliar with the underlying software?" (which I think more clearly highlights why ubuntu:latest is the latest LTS, not the latest release 👀)

Copy link
Member

@tianon-sso tianon-sso left a comment

Choose a reason for hiding this comment

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

Just one really minor nit; thank you! ❤️

content/trusted-content/official-images/contributing.md Outdated Show resolved Hide resolved
@whalelines
Copy link
Contributor

@dvdksn could you add a 'Closes docker-library/official-images#14346' in the description of this PR please?

@dvdksn dvdksn requested a review from whalelines April 11, 2024 14:32
Copy link
Contributor

@whalelines whalelines left a comment

Choose a reason for hiding this comment

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

I've made a few suggestions.

content/trusted-content/official-images/_index.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/_index.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/contributing.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/contributing.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/contributing.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/contributing.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/using.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/using.md Outdated Show resolved Hide resolved
content/trusted-content/official-images/using.md Outdated Show resolved Hide resolved
@dvdksn
Copy link
Collaborator Author

dvdksn commented Apr 12, 2024

thanks again @whalelines :-)

@dvdksn dvdksn merged commit 32ec92a into docker:main Apr 12, 2024
9 checks passed
@dvdksn dvdksn deleted the doi-updates branch April 12, 2024 09:57
Copy link

@bader1000 bader1000 left a comment

Choose a reason for hiding this comment

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

Hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Relates to Dockerfiles or docker build command area/hub Issue affects Docker Hub area/release Relates to CI or deployment area/security status/review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Question about Intellectual Property note
6 participants