#How to run the Engine with Custom Certificate Authorities?
1 messages · Page 1 of 1 (latest)
👋 hello, @wise comet
You can mount them at runtime under /usr/local/share/ca-certificates
See if theese Docs help you run your custom image
https://github.com/dagger/dagger/blob/main/docs/current_docs/manuals/administrator/engine/custom-runner.mdx#connection-interface
@white marsh Thanks, yes I read the documentation but it didn't help.
Locally Built Docker Image
FROM registry.dagger.io/engine:v.12.7
COPY ca.crt /usr/local/share/ca-certificates
Execute
dagger init —sdk=go —source=./dagger
How to set variables to use local docker image or remote registry?
doesn't the image have a full path to the image like mcr.microsoft.com/dotnet/runtime:latest it would then pull it from remote or if already on your local, use the downloaded one
it's the same behaviour with normal docker I thought, pull if not exists.
i wacked a page up somewhere at work when iwas going through this process, let me see if i can dump that conf page stuff onto a gist somewhere
@fathom condor was faster with the answer 
tbh, i think the official docs could be a bit more verbose like my gist
Thanks guys.
I figured it out, let's summarize a bit.
By running the following commands, you create your image, run it, and then set a variable to tell dagger cli where to go, which container to use.
cat dagger_engine.containerfile
FROM registry.dagger.io/engine:v0.12.7
COPY ./ca.crt /usr/local/share/ca-certificates
docker build -t your.private.registry/acme/custom-dagger-engine:v0.12.7 -f dagger_engine.containerfile .
docker run -d --rm --name custom-dagger-engine --privileged your.private.registry/acme/custom-dagger-engine:v0.12.7
export _EXPERIMENTAL_DAGGER_RUNNER_HOST=docker-container://custom-dagger-engine
dagger init --sdk=go --source=./dagger
I was thinking of using a pointer to a custom docker image, instead of specifying a running custom container. Otherwise, in a Git Self Runner, you'd have to run the container in addition to the checkout and dagger run. But it doesn't work
export _EXPERIMENTAL_DAGGER_RUNNER_HOST=docker-image://your.private.registry/acme/custom-dagger-engine:v0.12.7