From 41d10489f68d07fd8f17604ff7352cc4b3f95b32 Mon Sep 17 00:00:00 2001 From: Pradumna Saraf Date: Thu, 18 Dec 2025 19:14:52 +0530 Subject: [PATCH] docs: Update Bun containerization guide to reflect new DHI process (#23857) ## Description Update the Bun containerization Bun to reflect the new DHI access method ## Reviews - [ ] Technical review - [x] Editorial review - [ ] Product review --- content/guides/bun/containerize.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/content/guides/bun/containerize.md b/content/guides/bun/containerize.md index 1353effc94..08f516c883 100644 --- a/content/guides/bun/containerize.md +++ b/content/guides/bun/containerize.md @@ -58,13 +58,25 @@ Choosing DHI offers the advantage of a production-ready image that is lightweigh {{< tabs >}} {{< tab name="Using Docker Hardened Images" >}} -Docker Hardened Images (DHIs) are available for Bun on [Docker Hub](https://hub.docker.com/hardened-images/catalog/dhi/bun). Unlike using the Docker Official Image, you must first mirror the Bun image into your organization and then use it as your base image. Follow the instructions in the [DHI quickstart](/dhi/get-started/) to create a mirrored repository for Bun. -Mirrored repositories must start with `dhi-`, for example: `FROM /dhi-bun:`. In the following Dockerfile, the `FROM` instruction uses `/dhi-bun:1` as the base image. +Docker Hardened Images (DHIs) are available for Bun in the [Docker Hardened Images catalog](https://hub.docker.com/hardened-images/catalog/dhi/bun). You can pull DHIs directly from the `dhi.io` registry. + +1. Sign in to the DHI registry: + ```console + $ docker login dhi.io + ``` + +2. Pull the Bun DHI as `dhi.io/bun:1`. The tag (`1`) in this example refers to the version to the latest 1.x version of Bun. + + ```console + $ docker pull dhi.io/bun:1 + ``` + +For other available versions, refer to the [catalog](https://hub.docker.com/hardened-images/catalog/dhi/bun). ```dockerfile # Use the DHI Bun image as the base image -FROM /dhi-bun:1 +FROM dhi.io/bun:1 # Set the working directory in the container WORKDIR /app