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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
@@ -25,34 +25,58 @@ For a different registry choose to configure using the [Other](other-registries)
The registries can either be public or private.
## General configuration
## General Configuration
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.
{% include image.html
lightbox="true"
file="/images/2924d81-registry-name.png"
url="/images/2924d81-registry-name.png"
alt="Specify Docker Registry Name"
{% include image.html
lightbox="true"
file="/images/2924d81-registry-name.png"
url="/images/2924d81-registry-name.png"
alt="Specify Docker Registry Name"
max-width="40%" %}
## Fallback Registry
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.
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.
## Using an optional repository prefix
Codefresh allows you to setup globally for each supported Registry a prefix string for your Docker images.
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)
## Internal caching registry
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).
Expand All
@@ -99,9 +103,9 @@ You can also select a single registry that will serve as your [caching registry]
Codefresh will efficiently use that registry to perform advanced caching logic for your builds
* Codefresh will automatically examine the stored metadata to decide which past image is most relevant for caching purposes
* Codefresh will automatically pull images from this registry for cache purposes
* Codefresh will automatically use that registry for distributed Docker layer caching to make your Docker builds faster
* Codefresh will automatically examine the stored metadata to decide which past image is most relevant for caching purposes
* Codefresh will automatically pull images from this registry for cache purposes
* Codefresh will automatically use that registry for distributed Docker layer caching to make your Docker builds faster
We give you the ability to define a separate registry for caching purposes for the following scenarios
Expand All
@@ -117,13 +121,11 @@ Therefore in most cases you should make your main registry your caching registry
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.
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.
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.
## What to read next
- [Working with Docker registries]({{site.baseurl}}/docs/docker-registries/working-with-docker-registries/)
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.