Skip to content

Commit c1b1380

Browse files
committed
Refine distro names
1 parent f9dc8d4 commit c1b1380

File tree

1 file changed

+9
-8
lines changed
  • src/content/docs/cloudflare-one/connections/connect-devices/warp/user-side-certificates

1 file changed

+9
-8
lines changed

src/content/docs/cloudflare-one/connections/connect-devices/warp/user-side-certificates/manual-deployment.mdx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -413,17 +413,18 @@ export NODE_EXTRA_CA_CERTS='[PATH_TO_CLOUDFLARE_CERT.pem]'
413413

414414
### Docker
415415

416-
Before you install a certificate to a Docker container, you must add it to the Docker build context:
416+
To install a certificate for use in a Docker container:
417417

418418
1. [Download a Cloudflare certificate](#download-the-cloudflare-root-certificate) in `.pem` format.
419-
2. Create a directory for certificates:
419+
2. Create a directory for certificates in your Docker project:
420420

421421
```sh
422+
cd docker-project
422423
mkdir certs
423424
mv /path/to/downloaded/certificate.pem certs/
424425
```
425426

426-
3. Verify the certificate is in the right directory. Your project should have the following structure:
427+
3. Verify the certificate was moved to the directory correctly. Your project should have the following structure:
427428

428429
```sh
429430
docker-project/
@@ -432,9 +433,9 @@ Before you install a certificate to a Docker container, you must add it to the D
432433
└── certificate.pem
433434
```
434435

435-
4. Add the certificate to the build process by adding the following to your dockerfile:
436+
4. Add the certificate to the Docker build process. For example:
436437

437-
```docker title="Red Hat/CentOS/Fedora-based images"
438+
```docker title="Red Hat-based images"
438439
FROM registry.access.redhat.com/ubi9/ubi:latest
439440
# Or use: FROM centos:7 or FROM fedora:38
440441
@@ -446,8 +447,8 @@ Before you install a certificate to a Docker container, you must add it to the D
446447
RUN update-ca-trust extract
447448
```
448449

449-
```docker title="Debian/Ubuntu-based images"
450-
FROM ubuntu:22.04
450+
```docker title="Debian-based images"
451+
FROM debian:12
451452
452453
# Install necessary certificates package
453454
RUN apt-get update && apt-get install -y ca-certificates
@@ -480,7 +481,7 @@ Before you install a certificate to a Docker container, you must add it to the D
480481
docker run --rm your-image-name sh -c "cat /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem | grep Cloudflare"
481482
```
482483

483-
```sh title="Debian/Ubuntu/Alpine-based images"
484+
```sh title="Debian and Alpine-based images"
484485
docker run --rm your-image-name sh -c "cat /etc/ssl/certs/certificate.pem"
485486
```
486487

0 commit comments

Comments
 (0)