This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/docs/guides/1224-self-signed-certificates.md
guillaume e48262a2fb Docs: 1224-self-signed-certificates
Add documentation on how to use Dagger with self-signed certs

Signed-off-by: guillaume <guillaume.derouville@gmail.com>
2022-04-08 11:47:38 +02:00

851 B

slug
/1224/self-signed-certificates/

Running Dagger with self-signed certificates

The connection to a container registry or to a remote docker daemon might require the need to add self-signed CA: x509: certificate signed by unknown authority.

These operations are being run inside the buildkitd context and require you to mount your certificates inside your buildkit instance.

Running a custom buildkit in Docker

To run a customized Buildkit version with Docker, this can be done using the below command. You can add as many certificate as you need:

docker run --net=host -d --restart always -v $PWD/my-cert.pem:/etc/ssl/certs/my-cert.pem --name dagger-buildkitd --privileged moby/buildkit:latest

To connect your Dagger client to this custom instance, please follow these steps