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