Skip to content

Commit 3d50e47

Browse files
committed
chore: improve dhi guide
1 parent 83778d1 commit 3d50e47

1 file changed

Lines changed: 27 additions & 13 deletions

File tree

content/guides/traefik.md

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,23 @@ Let’s do a quick demo of starting Traefik and then configuring two additional
5454
{{< tabs >}}
5555
{{< tab name="Using Docker Hardened Images" >}}
5656

57-
Docker Hardened Images (DHI) for Traefik are available on [Docker Hub](https://hub.docker.com/hardened-images/catalog/dhi/traefik).
58-
Before you can use a DHI image, you must mirror it into your organization’s namespace.
59-
Follow the [DHI quickstart](/dhi/get-started/) to create a mirrored repository.
57+
Docker Hardened Images (DHI) for Traefik are available on [Docker Hub](https://hub.docker.com/hardened-images/catalog/dhi/traefik).
58+
If you haven't authenticated yet, first run:
59+
60+
```bash
61+
docker login dhi.io
62+
```
6063

6164
For example — use:
62-
`FROM <your-namespace>/dhi-traefik:<tag>`
65+
`FROM dhi.io/traefik:<tag>`
6366

6467
Then start a container using the Hardened image:
6568

6669
```console
6770
$ docker run -d --network=traefik-demo \
6871
-p 80:80 \
6972
-v /var/run/docker.sock:/var/run/docker.sock \
70-
<your-namespace>/dhi-traefik:3.6.2 \
73+
dhi.io/traefik:3.6.2 \
7174
--providers.docker
7275
```
7376

@@ -92,13 +95,17 @@ $ docker run -d --network=traefik-demo \
9295
{{< tabs >}}
9396
{{< tab name="Using Docker Hardened Images" >}}
9497

95-
If your organization uses an [Nginx DHI image](https://hub.docker.com/hardened-images/catalog/dhi/nginx),
96-
you can use the mirrored image name following. For example:
98+
Docker Hardened Images (DHI) for Nginx are available on [Nginx DHI image](https://hub.docker.com/hardened-images/catalog/dhi/nginx).
99+
If you haven't authenticated yet, first run:
100+
101+
```bash
102+
docker login dhi.io
103+
```
97104

98105
```console
99106
$ docker run -d --network=traefik-demo \
100107
--label 'traefik.http.routers.nginx.rule=Host(`nginx.localhost`)' \
101-
<your-namespace>/dhi-nginx:1.29.3
108+
dhi.io/nginx:1.29.3
102109
```
103110

104111
{{< /tab >}}
@@ -149,7 +156,7 @@ The application can be accessed on GitHub at [dockersamples/easy-http-routing-wi
149156
```yaml
150157
services:
151158
proxy:
152-
image: <your-namespace>/dhi-traefik:3.6.2
159+
image: dhi.io/traefik:3.6.2
153160
command: --providers.docker
154161
ports:
155162
- 80:80
@@ -181,14 +188,21 @@ services:
181188
{{< tabs >}}
182189
{{< tab name="Using Docker Hardened Images" >}}
183190
184-
If your organization mirrors the [Nginx DHI image](https://hub.docker.com/hardened-images/catalog/dhi/nginx),
185-
you can use it as your base image as shown following:
191+
Docker Hardened Images (DHI) for Nginx are available on [Nginx DHI image](https://hub.docker.com/hardened-images/catalog/dhi/nginx).
192+
193+
If you haven't authenticated yet, first run:
194+
195+
```bash
196+
docker login dhi.io
197+
```
198+
199+
You can use it as your base image as shown following:
186200

187201
```yaml
188202
services:
189203
#
190204
client:
191-
image: <your-namespace>/dhi-nginx:1.29.3-alpine3.21
205+
image: dhi.io/nginx:1.29.3-alpine3.21
192206
volumes:
193207
- "./client:/usr/share/nginx/html"
194208
labels:
@@ -289,7 +303,7 @@ With this file, the only change is to the Compose configuration for Traefik. The
289303
```yaml
290304
services:
291305
proxy:
292-
image: <your-namespace>/dhi-traefik:3.6.2
306+
image: dhi.io/traefik:3.6.2
293307
command: --providers.docker --providers.file.filename=/config/traefik-config.yaml --api.insecure
294308
ports:
295309
- 80:80

0 commit comments

Comments
 (0)