Skip to content

docs: Add a section in the Rust guide to use DHI#23728

Merged
craig-osterhout merged 13 commits intodocker:mainfrom
edithturn:rust-dhi
Jan 28, 2026
Merged

docs: Add a section in the Rust guide to use DHI#23728
craig-osterhout merged 13 commits intodocker:mainfrom
edithturn:rust-dhi

Conversation

@edithturn
Copy link
Copy Markdown
Contributor

Description

Updated the Rust language guide to include Docker Hardened Images (DHI).

Changes include:

  • Added DHI as an option with tab-based layout (Official image / Hardened image)
  • Added a DHI-based Dockerfile example
  • Updated build instructions to match docker init behavior
  • Added DHI quickstart link in "Related information"

This follows the same structure used in the Bun and Ruby DHI updates.

Reviews

  • Technical review
  • Editorial review
  • Product review

@netlify
Copy link
Copy Markdown

netlify bot commented Nov 16, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 3669c07
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/69724d0d9a936900074e51e5
😎 Deploy Preview https://deploy-preview-23728--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 project configuration.

@igor-alexandrov
Copy link
Copy Markdown
Contributor

@edithturn I mirrored Rust images to my account, and the actual language version is 1.91.1. Maybe the guide should be updated to it?

@edithturn
Copy link
Copy Markdown
Contributor Author

edithturn commented Nov 22, 2025

@edithturn I mirrored Rust images to my account, and the actual language version is 1.91.1. Maybe the guide should be updated to it?

Hi @igor-alexandrov , thank you for the review and for pointing this out! 🙌
I’ve updated the Rust version to the latest one as suggested.

While testing, I also noticed that one of the dependencies in the Hello World base example (used by this part of the docs) didn’t compile with Rust 1.91.1 (but worked with 1.70.0), so I opened a PR to update the Cargo.toml and fix the build there as well:
👉 https://github.com/docker/docker-rust-hello/pull/1

Thanks again for the feedback, I really appreciate it!

@craig-osterhout craig-osterhout requested a review from a team November 25, 2025 20:01
@craig-osterhout craig-osterhout added the status/review Pull requests that are ready for review label Nov 25, 2025
@craig-osterhout
Copy link
Copy Markdown
Contributor

craig-osterhout commented Dec 18, 2025

Thanks @edithturn. Sorry, we had to quietly pause all reviews/changes for the surprise DHI free updates. Can you help update this based on that?
Essentially, for DHI, mirroring is no longer required, and users can directly use the public images at dhi.io/<image>:<tag> as long as they authenticate.

@edithturn
Copy link
Copy Markdown
Contributor Author

Hi @craig-osterhout, I updated the documentation with public Docker Hardened Images. I compiled and tested everything, and it is working fine!
Please, we also need to update Cargo. toml, the corresponding PR is here: docker/docker-rust-hello#1

Appreciate your time for reviewing!

Thanks!

Copy link
Copy Markdown
Contributor

@craig-osterhout craig-osterhout 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 updating, @edithturn. I left a couple suggestions.

Comment thread content/guides/rust/build-images.md Outdated
Comment thread content/guides/rust/build-images.md Outdated
Comment thread content/guides/rust/build-images.md Outdated
Comment thread content/guides/rust/build-images.md Outdated
Comment thread content/guides/rust/build-images.md
edithturn and others added 2 commits January 8, 2026 00:22
Co-authored-by: Craig Osterhout <craig.osterhout@docker.com>
@craig-osterhout craig-osterhout self-requested a review January 13, 2026 19:51
@craig-osterhout craig-osterhout removed the status/review Pull requests that are ready for review label Jan 15, 2026
@edithturn
Copy link
Copy Markdown
Contributor Author

Hi @craig-osterhout , thanks for the feedback!
I addressed all of them!

@craig-osterhout craig-osterhout added the status/review Pull requests that are ready for review label Jan 20, 2026
Copy link
Copy Markdown
Contributor

@craig-osterhout craig-osterhout left a comment

Choose a reason for hiding this comment

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

Thanks @edithturn. Marked one small issue, otherwise LGTM.

Comment thread content/guides/rust/build-images.md
Copy link
Copy Markdown
Contributor

@craig-osterhout craig-osterhout left a comment

Choose a reason for hiding this comment

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

Thank you. LGTM

@craig-osterhout craig-osterhout merged commit 6d1ccc8 into docker:main Jan 28, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/guides status/review Pull requests that are ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants