[Resource](/blog-category/resource/) March 16, 2023

# Switching Container Registries With Zero Downtime

You can change the hosting provider of your packages, containers, and files without impacting the end user with Scarf.

By Scarf

![Switching Container Registries With Zero Downtime](/imported/social-og/2d39d4a1d2727058-c1d9dc96.png)

You can change the hosting provider of your packages, containers, and files without impacting the end user with Scarf.

[Scarf Gateway](https://github.com/scarf-sh/gateway) (available under the Apache 2 license at [https://github.com/scarf-sh/gateway](https://github.com/scarf-sh/gateway) ) and our managed [Scarf](https://app.scarf.sh/register) service are designed to provide you with an easy way to change out the back-end container registry, package location, or file hosting platform for your open source software. Scarf Gateway does this by creating a custom domain redirect to the channels distributing your software.  If you find a provider not meeting your needs, simply update the endpoint, and all your users will continue using the same commands and destinations they used previously with no noticeable change.   

## Scarf Gateway

How Scarf Gateway works is similar to a link shortener like bit.ly, which acts as a domain gateway to redirect traffic.  Where it is different from a normal link shortener is it is designed to be compatible with the different API’s used by various services like:

-   Registries like Docker Hub, Google Container Registry, RedHat Quay, Amazon Elastic Container Registry, and Azure Container Registry 
-   Package managers like Nix, homebrew, RPM, Apt, etc,
-   Language specific package managers like pip or npm, 
-   Files coming via source control repos (Github or Gitlab) 
-   Or any file that is a direct download on the internet

![Supporting image 1 for Switching Container Registries With Zero Downtime](https://static.scarf.sh/a.png?x-pxid=fdea5248-f0e3-49b2-825a-1757f9b97a79)

## One Line Change:

If you are using the open source version of the Scarf Gateway, changing container registries is literally a one-line change

![Supporting image 2 for Switching Container Registries With Zero Downtime](/imported/posts/a5767240dc23042f.png)

Sending traffic through testorg.docker.scarf.sh -> ECR

![Supporting image 3 for Switching Container Registries With Zero Downtime](/imported/posts/559c7598c76fe6ad.png)

Sending traffic through testorg.docker.scarf.sh -> Docker Hub

Update the registry variable in the configuration, and all your user’s pull commands will redirect to the new location.  No fuss.

If you are using Scarf.sh’s managed service the UI is just as simple (note using our hosted managed service is free if you don’t want to run the gateway on your own):

![Supporting image 4 for Switching Container Registries With Zero Downtime](/imported/posts/084e02c4acc945a0.png)

See how Scarf enables you to see more about your downloads:

You can see an example setup using the UI here (~3 minutes):  

[](https://youtu.be/V-aKLOA-HcI)

[  
](https://youtu.be/V-aKLOA-HcI)

Related Resources

[![](/imported/social-og/56df6684ceae399c-9c0647d5.png)

Resource Sep 5, 2023

### Beyond the Surface: How to Engage with the Quiet Members of your Open Source Community

In the dynamic realm of community management, marketing, and developer relations, success depends upon more than just attracting attention. It's about fostering meaningful relationships, nurturing engagement, and amplifying your community's impact.



](/post/beyond-the-surface-how-to-engage-with-the-quiet-members-of-your-open-source-community/)[![](/imported/social-og/9277af8f0c81f6d2-3589135f.png)

Resource Sep 1, 2023

### Why Open Source Projects and Companies Should Adopt "Open Source Qualified Leads"

The modern digital age, driven by the proliferation of open-source projects, is as much about community as it is about the code. This means understanding and engaging with potential adopters, contributors, and users becomes critical for the health and success of a project or product. Here enters the concept of "Open Source Qualified Leads" (OQL).



](/post/why-open-source-projects-and-companies-should-adopt-open-source-qualified-leads/)[![](/imported/social-og/dfcfee806089be6a-45bd3ca2.png)

Resource Aug 3, 2023

### Mastering Telemetry in Open Source: A Simple Guide to Building Lightweight Call Home Functionality

Implementing a call-home functionality or telemetry within open-source software often raises privacy concerns within the community. Many parties, including enterprise security teams, customer advocates, and developers, express rightful apprehensions about the transmission, storage, and usage of data.



](/post/mastering-telemetry-in-open-source-a-simple-guide-to-building-lightweight-call-home-functionality/)

Article Notes [**Browse all resources**

Search, categories, and latest Scarf writing.

](/resources)[**See pricing**

Understand how Scarf packages its offering.

](/pricing)

On this page [Scarf Gateway](#scarf-gateway)[One Line Change:](#one-line-change)[](#)
