Skip to content

Commit 86fdcb4

Browse files
docs: Update Deno containerization guide to reflect new DHI process (#23856)
## Description Update the Deno containerization guide 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 41d1048 commit 86fdcb4

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

content/guides/deno/containerize.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,26 @@ Choosing DHI offers the advantage of a production-ready image that is lightweigh
7171

7272
{{< tabs >}}
7373
{{< tab name="Using Docker Hardened Images" >}}
74-
Docker Hardened Images (DHIs) are available for Deno on [Docker Hub](https://hub.docker.com/hardened-images/catalog/dhi/deno). Unlike using the Docker Official Image, you must first mirror the Deno 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 Deno.
7574

76-
Mirrored repositories must start with `dhi-`, for example: `FROM <your-namespace>/dhi-deno:<tag>`. In the following Dockerfile, the `FROM` instruction uses `<your-namespace>/dhi-deno:2` as the base image.
75+
Docker Hardened Images (DHIs) are available for Deno in the [Docker Hardened Images catalog](https://hub.docker.com/hardened-images/catalog/dhi/deno). You can pull DHIs directly from the `dhi.io` registry.
76+
77+
1. Sign in to the DHI registry:
78+
79+
```console
80+
$ docker login dhi.io
81+
```
82+
83+
2. Pull the Deno DHI as `dhi.io/deno:2`. The tag (`2`) in this example refers to the version to the latest 2.x version of Deno.
84+
85+
```console
86+
$ docker pull dhi.io/deno:2
87+
```
88+
89+
For other available versions, refer to the [catalog](https://hub.docker.com/hardened-images/catalog/dhi/deno).
7790

7891
```dockerfile
7992
# Use the DHI Deno image as the base image
80-
FROM <your-namespace>/dhi-deno:2
93+
FROM dhi.io/deno:2
8194

8295
# Set the working directory
8396
WORKDIR /app

0 commit comments

Comments
 (0)