File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,9 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
140140 elif [[ " $PR_CI_JOB " == " 1" ]];
141141 then
142142 # Enable a new Docker driver so that --cache-from works with a registry backend
143- docker buildx create --use --driver docker-container
143+ # Use a custom image to avoid DockerHub rate limits
144+ docker buildx create --use --driver docker-container \
145+ --driver-opt image=ghcr.io/rust-lang/buildkit:buildx-stable-1
144146
145147 # Build the image using registry caching backend
146148 retry docker \
@@ -156,7 +158,9 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
156158 --password-stdin
157159
158160 # Enable a new Docker driver so that --cache-from/to works with a registry backend
159- docker buildx create --use --driver docker-container
161+ # Use a custom image to avoid DockerHub rate limits
162+ docker buildx create --use --driver docker-container \
163+ --driver-opt image=ghcr.io/rust-lang/buildkit:buildx-stable-1
160164
161165 # Build the image using registry caching backend
162166 retry docker \
You can’t perform that action at this time.
0 commit comments