Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit40e88a2

Browse files
author
Lukas Goodfellow
authored
add fallback registry (#315)
1 parent707100a commit40e88a2

File tree

2 files changed

+89
-111
lines changed

2 files changed

+89
-111
lines changed

‎_docs/integrations/docker-registries.md‎

Lines changed: 49 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,58 @@ For a different registry choose to configure using the [Other](other-registries)
2525

2626
The registries can either be public or private.
2727

28-
##General configuration
28+
##General Configuration
29+
2930
To configure your registries go to your Account Configuration, by clicking on*Account Settings* on the left sidebar. On the first section called*Integrations* click the*Configure* button next to*Docker Registry*.
3031

31-
{% include image.html
32-
lightbox="true"
33-
file="/images/integrations/codefresh-integrations.png"
34-
url="/images/integrations/codefresh-integrations.png"
35-
alt="Codefresh Account Integration"
32+
{% include image.html
33+
lightbox="true"
34+
file="/images/integrations/codefresh-integrations.png"
35+
url="/images/integrations/codefresh-integrations.png"
36+
alt="Codefresh Account Integration"
3637
max-width="80%" %}
3738

3839
Add a new registry configuration from the drop down.
3940

40-
{% include image.html
41-
lightbox="true"
42-
file="/images/integrations/docker-registries/add-docker-registry.png"
43-
url="/images/integrations/docker-registries/add-docker-registry.png"
44-
alt="Add Docker Registry"
41+
{% include image.html
42+
lightbox="true"
43+
file="/images/integrations/docker-registries/add-docker-registry.png"
44+
url="/images/integrations/docker-registries/add-docker-registry.png"
45+
alt="Add Docker Registry"
4546
max-width="45%" %}
4647

4748
Each configuration must be given a unique name, which you can later reference in a codefresh.yml file.
4849

49-
{% include image.html
50-
lightbox="true"
51-
file="/images/2924d81-registry-name.png"
52-
url="/images/2924d81-registry-name.png"
53-
alt="Specify Docker Registry Name"
50+
{% include image.html
51+
lightbox="true"
52+
file="/images/2924d81-registry-name.png"
53+
url="/images/2924d81-registry-name.png"
54+
alt="Specify Docker Registry Name"
5455
max-width="40%" %}
5556

57+
##Fallback Registry
58+
59+
Codefresh has a feature that allows users to designate a Fallback Registry for docker integrations. If a Codefresh pipeline attempts to pull an image and that image fails for any reason (authorization issue, the registry server is down, etc.), a retry mechanism will attempt to pull it successfully. If this mechanism fails, the Fallback Registry feature provides the opportunity to pull the image from a different registry you have specified.
60+
61+
To define the Fallback Registry, go to Account Settings, Integrations, and select configure for Docker Registries. In the list of registries, edit the integration. Under Advanced Options, you will see a field labeled as Fallback Registry. Select the integration name you’d like to use as your Fallback Registry and then save the integration. You can also specify a Fallback Registry when creating a new integration as long as another integration exists.
62+
63+
##Using an optional repository prefix
64+
65+
Codefresh allows you to setup globally for each supported Registry a prefix string for your Docker images.
66+
67+
This is handy for registries that require a prefix (usually the name of an organization or repository) as you can set it once, instead of having each pipeline using the prefix by itself.
68+
69+
{% include image.html
70+
lightbox="true"
71+
file="/images/integrations/docker-registries/repository-prefix.png"
72+
url="/images/integrations/docker-registries/repository-prefix.png"
73+
alt="Setting a Registry prefix"
74+
caption="Setting a Registry prefix"
75+
max-width="60%"
76+
%}
77+
78+
See more details at[pushing Docker images]({{site.baseurl}}/docs/docker-registries/working-with-docker-registries/#pushing-docker-images)
79+
5680
##Pushing an image
5781

5882
Once your registry configuration is all set up you can start pushing your images to it.
@@ -66,31 +90,11 @@ push_step:
6690
description: Free text description
6791
candidate: {% raw %}${{build_step}}{% endraw %}
6892
tag: {% raw %}${{CF_BRANCH}}{% endraw %}
69-
registry:<your-registry-configuration-name>
93+
registry: your-registry-configuration-name
7094
{% endhighlight %}
7195

7296
For more details see the[the image pushing example]({{site.baseurl}}/docs/yaml-examples/examples/build-and-push-an-image/).
7397

74-
##Using an optional repository prefix
75-
76-
Codefresh allows you to setup globally for each supported Registry a prefix string for your Docker images.
77-
78-
79-
This is handy for registries that require a prefix (usually the name of an organization or repository) as you can set it once, instead
80-
of having each pipeline using the prefix by itself.
81-
82-
{% include image.html
83-
lightbox="true"
84-
file="/images/integrations/docker-registries/repository-prefix.png"
85-
url="/images/integrations/docker-registries/repository-prefix.png"
86-
alt="Setting a Registry prefix"
87-
caption="Setting a Registry prefix"
88-
max-width="60%"
89-
%}
90-
91-
See more details at[pushing Docker images]({{site.baseurl}}/docs/docker-registries/working-with-docker-registries/#pushing-docker-images)
92-
93-
9498
##Internal caching registry
9599

96100
You can also select a single registry that will serve as your[caching registry]({{site.baseurl}}/docs/configure-ci-cd-pipeline/pipeline-caching/#docker-registry-caching).
@@ -99,9 +103,9 @@ You can also select a single registry that will serve as your [caching registry]
99103
100104
Codefresh will efficiently use that registry to perform advanced caching logic for your builds
101105

102-
* Codefresh will automatically examine the stored metadata to decide which past image is most relevant for caching purposes
103-
* Codefresh will automatically pull images from this registry for cache purposes
104-
* Codefresh will automatically use that registry for distributed Docker layer caching to make your Docker builds faster
106+
* Codefresh will automatically examine the stored metadata to decide which past image is most relevant for caching purposes
107+
* Codefresh will automatically pull images from this registry for cache purposes
108+
* Codefresh will automatically use that registry for distributed Docker layer caching to make your Docker builds faster
105109

106110
We give you the ability to define a separate registry for caching purposes for the following scenarios
107111

@@ -117,13 +121,11 @@ Therefore in most cases you should make your main registry your caching registry
117121

118122
If you define more than one registries you can also click the*default* button in the UI to define the registry that will be used in both[build]({{site.baseurl}}/docs/codefresh-yaml/steps/build/) and[push steps]({{site.baseurl}}/docs/codefresh-yaml/steps/push/) if they don't already contain a`registry` property.
119123

120-
Notice that successful[build steps]({{site.baseurl}}/docs/codefresh-yaml/steps/build/) will always push to the default Codefresh registry unless you also define the`disable_push` property.
121-
124+
Notice that successful[build steps]({{site.baseurl}}/docs/codefresh-yaml/steps/build/) will always push to the default Codefresh registry unless you also define the`disable_push` property.
122125

123126
##What to read next
124127

125-
126-
-[Working with Docker registries]({{site.baseurl}}/docs/docker-registries/working-with-docker-registries/)
127-
-[Push pipeline step]({{site.baseurl}}/docs/codefresh-yaml/steps/push/)
128-
-[Pushing docker images with the UI]({{site.baseurl}}/docs/docker-registries/push-image-to-a-docker-registry/)
129-
-[Examples of pushing Docker images]({{site.baseurl}}/docs/yaml-examples/examples/build-and-push-an-image/)
128+
*[Working with Docker registries]({{site.baseurl}}/docs/docker-registries/working-with-docker-registries/)
129+
*[Push pipeline step]({{site.baseurl}}/docs/codefresh-yaml/steps/push/)
130+
*[Pushing docker images with the UI]({{site.baseurl}}/docs/docker-registries/push-image-to-a-docker-registry/)
131+
*[Examples of pushing Docker images]({{site.baseurl}}/docs/yaml-examples/examples/build-and-push-an-image/)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp