You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/integrations/docker-registries.md
+49-47Lines changed: 49 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,34 +25,58 @@ For a different registry choose to configure using the [Other](other-registries)
25
25
26
26
The registries can either be public or private.
27
27
28
-
##General configuration
28
+
##General Configuration
29
+
29
30
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*.
Each configuration must be given a unique name, which you can later reference in a codefresh.yml file.
48
49
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"
54
55
max-width="40%" %}
55
56
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.
See more details at[pushing Docker images]({{site.baseurl}}/docs/docker-registries/working-with-docker-registries/#pushing-docker-images)
92
-
93
-
94
98
##Internal caching registry
95
99
96
100
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]
99
103
100
104
Codefresh will efficiently use that registry to perform advanced caching logic for your builds
101
105
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
105
109
106
110
We give you the ability to define a separate registry for caching purposes for the following scenarios
107
111
@@ -117,13 +121,11 @@ Therefore in most cases you should make your main registry your caching registry
117
121
118
122
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.
119
123
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.
122
125
123
126
##What to read next
124
127
125
-
126
-
-[Working with Docker registries]({{site.baseurl}}/docs/docker-registries/working-with-docker-registries/)