SWIFT supports container registry replication.
If you want to enable container registry replication, you should first add a container registry. To do this, go to the 'Container Registry' tab in the left menu and click the 'Add' button to add a new container registry. SWIFT is compatible with various container image registries.
Add new container registries
1. First, you need to login to the SWIFT dashboard and navigate to the ‘All Replication’ under ‘Sync administration’ menu and click on ‘New’ button and select ‘Registry Replication’. Please find snippet below.
2. After clicking on ‘Registry Replication’, you will see the screen below where you need to select the image registry ‘type’ on both sides that you want to replicate from the source to the target.
- Friendly name: Then you need to select the Friendly name from the dropdown menu on both sides that you added in Container registry section. You can check KB Article on how to add container registry for more information.
- Repositories:
- If you select ‘All’ in then all container image repo will be synced at target.
- If you select 'Selective,’ it will sync only the selected container image repositories to the target side. You need to choose the repositories from the dropdown menu in the 'Choose Repositories' section and press the ‘+’ symbol to add. Please find a snippet for the same.
If you see in the above snippet, there are other options that you can select as per your requirement.
- Verbose Sync: When you select ‘Verbose sync’ it will log extensive information about each step and operation performed during the synchronization process.
- Dry Run: When you use a dry run, it will verify that the initial sync setup is correct. Additionally, it will avoid unintended changes or data loss and validate that the sync will run successfully to the end. It will also collect sync stats.
- Job Name: You can provide any name related to the container registry sync so that you can easily identify which sync is for which registry.
- Add: Now click on the ‘Add’ button to start the sync.
Go to the All Replication, then press ‘New’ button and select ‘Registry replication’ on SWIFT dashboard.
After that, a window will appear where you need to provide some inputs regarding the container registry at both the source and the target. Please see below snippet.
- As suggested earlier you just need to choose any cloud type that you want to replicate and then you need to select the Friendly name from the dropdown menu on both sides that you added in Container registry section. You can check KB Article on how to add container registry for more information.
- Rest of all inputs are same as above.
- In the above snippet if you are replicating with ‘Selective’ repositories, It will sync only the selected container image repositories to the target side. You need to choose the repositories from the dropdown menu in the 'Choose Repositories' section and press the ‘+’ symbol to add. Please find a snippet for the same.
- And click on Add button to start the registry replication from ECR to GCR.
- After successfully replicated, it will see like this on SWIFT dashboard.
Add/Discover new container registries and replication OCIR (Oracle) and ACR (Azure)
- You can select Oracle container registry at source side and Azure at target side to do container replication and vice versa. Please find below snippet.
- As shown in the snippet above, we have selected OCIR and Azure for replication with all repositories.
- All repositories will be migrated to the target image registry and vice versa as here we have selected All option in Repositories section.
- You can see below that replication has been completed from OCIR to ACR.
- In this way, SWIFT supports nearly all cloud container registries, including Docker.