#Setting up a Registry Mirror

1 messages · Page 1 of 1 (latest)

gleaming silo
pure sapphire
#

👋 I can help @gleaming silo

#

if you want to customize the buildkit.toml in your Dagger engine, you can do so by overriding the /etc/dagger/engine.toml inside of it. Here's an example:

# Add your buildkit config here
cat <<EOF > engine.toml
debug = true
EOF

MAIN_RELEASE="v0.5.1"
container_name="dagger-engine-$(docker inspect registry.dagger.io/engine:$MAIN_RELEASE -f '{{index .RepoDigests 0}}' | cut -d ':' -f2 | cut -c -16)"

docker run --privileged -d --name $container_name -v $(pwd)/engine.toml:/etc/dagger/engine.toml registry.dagger.io/engine:$MAIN_RELEASE
pure sapphire
gleaming silo
#

That worked! I spent waaay too much time on this 😄

I ended up spinning up a container and using _EXPERIMENTAL_DAGGER_RUNNER_HOST=docker-container://dagger-engine-jenkins instead, but the solution (mount /etc/dagger/engine.toml) is the same

#

Thank you so much!