Skip to content

Commit 41d1048

Browse files
docs: Update Bun containerization guide to reflect new DHI process (#23857)
<!--Delete sections as needed --> ## Description Update the Bun containerization Bun to reflect the new DHI access method ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [x] Editorial review - [ ] Product review
1 parent 11171a3 commit 41d1048

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

content/guides/bun/containerize.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,25 @@ Choosing DHI offers the advantage of a production-ready image that is lightweigh
5858

5959
{{< tabs >}}
6060
{{< tab name="Using Docker Hardened Images" >}}
61-
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.
6261

63-
Mirrored repositories must start with `dhi-`, for example: `FROM <your-namespace>/dhi-bun:<tag>`. In the following Dockerfile, the `FROM` instruction uses `<your-namespace>/dhi-bun:1` as the base image.
62+
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.
63+
64+
1. Sign in to the DHI registry:
65+
```console
66+
$ docker login dhi.io
67+
```
68+
69+
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.
70+
71+
```console
72+
$ docker pull dhi.io/bun:1
73+
```
74+
75+
For other available versions, refer to the [catalog](https://hub.docker.com/hardened-images/catalog/dhi/bun).
6476

6577
```dockerfile
6678
# Use the DHI Bun image as the base image
67-
FROM <your-namespace>/dhi-bun:1
79+
FROM dhi.io/bun:1
6880

6981
# Set the working directory in the container
7082
WORKDIR /app

0 commit comments

Comments
 (0)