|
6 | 6 | <meta charset="utf-8"> |
7 | 7 | <meta name="viewport" content="width=device-width,initial-scale=1"> |
8 | 8 |
|
9 | | - <meta name="description" content="Tutorial on how to tests if GitLab CI accesses Docker Hub directly and how to configure pull-through cache to an Kubernetes cluster working as a GitLab runner."> |
| 9 | + <meta name="description" content="Tutorial on how to test if Docker-in-Docker service in GitLab CI accesses Docker Hub directly and how to configure pull-through cache to an Kubernetes cluster working as a GitLab runner."> |
10 | 10 |
|
11 | 11 |
|
12 | 12 |
|
|
24 | 24 |
|
25 | 25 |
|
26 | 26 |
|
27 | | - <title>Docker Hub ratelimit - CI/CD Examples</title> |
| 27 | + <title>Docker-in-Docker service and Docker Hub ratelimit - CI/CD Examples</title> |
28 | 28 |
|
29 | 29 |
|
30 | 30 |
|
|
61 | 61 |
|
62 | 62 | <meta property="og:type" content="website" > |
63 | 63 |
|
64 | | - <meta property="og:title" content="Docker Hub ratelimit - CI/CD Examples" > |
| 64 | + <meta property="og:title" content="Docker-in-Docker service and Docker Hub ratelimit - CI/CD Examples" > |
65 | 65 |
|
66 | | - <meta property="og:description" content="Tutorial on how to tests if GitLab CI accesses Docker Hub directly and how to configure pull-through cache to an Kubernetes cluster working as a GitLab runner." > |
| 66 | + <meta property="og:description" content="Tutorial on how to test if Docker-in-Docker service in GitLab CI accesses Docker Hub directly and how to configure pull-through cache to an Kubernetes cluster working as a GitLab runner." > |
67 | 67 |
|
68 | 68 | <meta property="og:image" content="https://kangasta.github.io/cicd-examples/assets/images/social/examples/gitlab-ci/docker-hub-ratelimit/README.png" > |
69 | 69 |
|
|
77 | 77 |
|
78 | 78 | <meta name="twitter:card" content="summary_large_image" > |
79 | 79 |
|
80 | | - <meta name="twitter:title" content="Docker Hub ratelimit - CI/CD Examples" > |
| 80 | + <meta name="twitter:title" content="Docker-in-Docker service and Docker Hub ratelimit - CI/CD Examples" > |
81 | 81 |
|
82 | | - <meta name="twitter:description" content="Tutorial on how to tests if GitLab CI accesses Docker Hub directly and how to configure pull-through cache to an Kubernetes cluster working as a GitLab runner." > |
| 82 | + <meta name="twitter:description" content="Tutorial on how to test if Docker-in-Docker service in GitLab CI accesses Docker Hub directly and how to configure pull-through cache to an Kubernetes cluster working as a GitLab runner." > |
83 | 83 |
|
84 | 84 | <meta name="twitter:image" content="https://kangasta.github.io/cicd-examples/assets/images/social/examples/gitlab-ci/docker-hub-ratelimit/README.png" > |
85 | 85 |
|
|
104 | 104 | <div data-md-component="skip"> |
105 | 105 |
|
106 | 106 |
|
107 | | - <a href="#docker-hub-ratelimit" class="md-skip"> |
| 107 | + <a href="#docker-in-docker-service-and-docker-hub-ratelimit" class="md-skip"> |
108 | 108 | Skip to content |
109 | 109 | </a> |
110 | 110 |
|
|
151 | 151 | <div class="md-header__topic" data-md-component="header-topic"> |
152 | 152 | <span class="md-ellipsis"> |
153 | 153 |
|
154 | | - Docker Hub ratelimit |
| 154 | + Docker-in-Docker service and Docker Hub ratelimit |
155 | 155 |
|
156 | 156 | </span> |
157 | 157 | </div> |
|
448 | 448 |
|
449 | 449 |
|
450 | 450 | <span class="md-ellipsis"> |
451 | | - Docker Hub ratelimit |
| 451 | + Docker-in-Docker service and Docker Hub ratelimit |
452 | 452 | </span> |
453 | 453 |
|
454 | 454 |
|
|
459 | 459 |
|
460 | 460 |
|
461 | 461 | <span class="md-ellipsis"> |
462 | | - Docker Hub ratelimit |
| 462 | + Docker-in-Docker service and Docker Hub ratelimit |
463 | 463 | </span> |
464 | 464 |
|
465 | 465 |
|
|
741 | 741 |
|
742 | 742 |
|
743 | 743 |
|
744 | | -<h1 id="docker-hub-ratelimit">Docker Hub ratelimit</h1> |
| 744 | +<h1 id="docker-in-docker-service-and-docker-hub-ratelimit">Docker-in-Docker service and Docker Hub ratelimit</h1> |
745 | 745 | <p>The recommended way of running Docker commands in a GitLab CI Kubernets runner is to use a service to run Docker-in-Docker container (<code>docker:dind</code>). By default the <code>docker:dind</code> container pulls container images from Docker Hub without caching. This can cause problems as pulls from Docker Hub are rate-limited.</p> |
746 | 746 | <p>This example tests how <code>docker pull ubuntu:24.04</code> commands consume Docker Hub ratelimit and provides example on how to configure pull-through cache to an Kubernetes cluster working as a GitLab runner.</p> |
747 | 747 | <h2 id="how-to-check-if-docker-pull-commands-are-cached">How to check if <code>docker pull</code> commands are cached</h2> |
@@ -836,7 +836,7 @@ <h2 id="how-to-setup-pull-through-cache-to-kubernetes-runner">How to setup pull- |
836 | 836 | <span class="md-icon" title="Last update"> |
837 | 837 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg> |
838 | 838 | </span> |
839 | | - <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 13, 2024</span> |
| 839 | + <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 14, 2024</span> |
840 | 840 | </span> |
841 | 841 |
|
842 | 842 |
|
|
0 commit comments