-
I have created an ECR pull-through cache rule in my AWS account that allows pull-through from Docker Hub. These images are pulled through under the I build images using the buildkit container. I have a
I added it to the buildkit image by building and publishing my own Dockerfile:
The full command I run inside this container to build an image looks like this:
I tried building this Dockerfile using my updated buildkit image:
and it does not use the mirror registry. It still just pulls from docker.io. Has anyone tried to do something like this before? It's hard to tell what I'm doing wrong because nothing additional is logged. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
What I described above does in fact work, assuming your ECR pull-through cache rule for Docker Hub uses the
|
Beta Was this translation helpful? Give feedback.
What I described above does in fact work, assuming your ECR pull-through cache rule for Docker Hub uses the
docker-hub
prefix (this is configurable when you create the rule in AWS). The reason it wasn't working was a silly mistake. Some things to note that made this a bit more confusing for me to debug:debug = true
does not affect the log output of thebuildctl-daemonless.sh
script. It only affects the log output of the buildkit daemon, which in my setup (Gitlab CI pipeline with a script supplied to the image) is not capture anywhere.