mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
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
This commit is contained in:
@@ -71,13 +71,26 @@ 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 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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
1. Sign in to the DHI registry:
|
||||
|
||||
```console
|
||||
$ docker login dhi.io
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
```console
|
||||
$ docker pull dhi.io/deno:2
|
||||
```
|
||||
|
||||
For other available versions, refer to the [catalog](https://hub.docker.com/hardened-images/catalog/dhi/deno).
|
||||
|
||||
```dockerfile
|
||||
# Use the DHI Deno image as the base image
|
||||
FROM <your-namespace>/dhi-deno:2
|
||||
FROM dhi.io/deno:2
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user