I followed the instructions here and I don't think it is working. Grepped through logs for gcr and nothing.This is with 0.12.4
https://docs.dagger.io/manuals/administrator/custom-registry
1 messages · Page 1 of 1 (latest)
I followed the instructions here and I don't think it is working. Grepped through logs for gcr and nothing.This is with 0.12.4
https://docs.dagger.io/manuals/administrator/custom-registry
Custom registry mirror appears not to be working
it should work. Buildkit doesn't print any logs when it's using the mirror but here's a way you can validate it works locally.
docker pull alpine:latestdocker run -v registry:/var/lib/registry --rm -p 5000:5000 --name registry registry:2 docker tag alpine:latest localhost:5000/library/alpine:latest && docker push localhost:5000/library/alpine:latestdebug = true
insecure-entitlements = ["security.insecure"]
[registry."docker.io"]
mirrors = ["localhost:5000"]
http = true
insecure = true
docker run -v registry:/var/lib/registry --rm --net container:$ENGINE_CONTAINER --name registry registry:2Now if you run a pipeine in Dagger that pulls alpine:latest, you'll see in your registry logs that the image is pulling it from there
I’ll try this thanks
@naive heart You are awesome btw. Thanks for the detailed writeup and step by step instructions. I was able to confirm the the dagger engine hit the registry. Only suggestion I would have is that the page I references says "You should see the specified hello-world container being pulled from the mirror instead of from Docker Hub." which is a little misleading. Not sure who to provide that feedback to.
happy to help! Thx for the suggestions to the docs, we'll make sure to clarify 🙏