Skip to content

How to enable a registry mirror for an ECR pull-through cache? #5829

Closed Answered by bscaleb
bscaleb asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • Setting debug = true does not affect the log output of the buildctl-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.
  • The log output of the build process also does not change when it is using the registry mirror. The only way I found to determine if this is doing …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bscaleb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant