Container Registry
Amazon ECR
Amazon ECR is a fully managed Docker Registry V2-compatible registry for storing, versioning, and distributing container images and OCI artifacts. It is tightly integrated with IAM for registry and repository policy, ECS/EKS for pulling through credential passthrough, and offers image scanning, lifecycle policies, replication, and pull-through-cache, with retrieval accelerated through regional caches and billed by storage plus data transfer.
AWS
Service information
Shortname: ECR
Huawei equivalent shortnames: SWR
Keywords: container registry, image repo, artifact
Differences vs Huawei
SWR is Huawei's Docker Registry V2-compatible image registry, organized into organizations and repositories rather than AWS accounts plus registry/region pairs. Both expose Docker CLI and V2 APIs for push/pull and back images onto OBS (eleven-nines durability), but ECR's authorization uses short-lived IAM tokens obtained through get-authorization-token, whereas SWR uses long-lived access tokens scoped to a tenant; repository-policy granularity, lifecycle rules, and cross-account sharing models differ and must be re-mapped rather than migrated verbatim.
Feature parity is not complete. ECR offers integrated Amazon Inspector/elastic scanning, immutable image tags, lifecycle cleanup by tag/count/age, private and public (ECR Public) galleries, cross-region and cross-account replication, and pull-through-cache from upstream public registries. SWR provides organizations, fine-grained IAM authorization, P2P-accelerated pulls to CCE, and multi-architecture images, but do not assume one-to-one parity for scanning, immutability, replication, or pull-through-cache; validate each control-plane and operational feature before cutover.
Integration and operational responsibility differ. ECR couples natively with ECS, EKS, IAM, CodePipeline, and CloudWatch for pull metrics and image-scan eventing. SWR couples natively with CCE, CCI, CodeArts Repo/Build, and IAM, and reports usage through Cloud Trace and CES; on Huawei, runtime pull acceleration and fleet integration are handled through the SWR-CCE path rather than ECR's standalone regional cache. Operators must rebuild CI/CD push steps, credential rotation, and alerting around Huawei's service boundaries rather than transplanting AWS-side automation.
Migration to Huawei
Assess the source registry inventory first: enumerate repositories, tags, multi-architecture manifests, lifecycle rules, scanning settings, immutability flags, and any replication or pull-through-cache dependencies. Confirm the target Huawei region has SWR and that CCE/CCI clusters that will consume the images are reachable. Because ECR is V2-compatible, the documented image-syncer and image-migrator tools can transfer blobs directly without an intermediate runtime, but you must still remap ECR repository naming, IAM repository policies, and cross-account access to SWR organizations and token scopes.
For data migration use the Huawei-documented approaches sized to volume: manual docker pull/tag/push for a handful of images, image-syncer for many images across multiple source repositories with concurrency control and resume-on-failure, or image-migrator for bulk Docker Registry v2-to-SWR transfer. Configure source ECR credentials (get-authorization-token) and destination SWR long-lived tokens in the syncer config, preserve tag and digest fidelity where present, and run a parallel sync to keep the target current while source CI keeps pushing.
Rebuild configuration and integrations on the Huawei side: create SWR organizations mapping ECR namespaces, issue scoped tokens to CI/CD (CodeArts Build or existing pipelines), attach IAM policies for pull/push, and reconnect CCE clusters to pull from SWR with imagePullSecrets. Re-implement operations you relied on from ECR where SWR supports equivalents (P2P pull acceleration, OBS-backed storage, multi-arch manifests) and explicitly track gaps such as lifecycle cleanup rules and integrated scanning, substituting external tooling or workflows where the feature is not native.
Validate and cut over with side-by-side tests: pull images from SWR into staging CCE workloads, verify digest parity, run application smoke tests, and confirm pull throughput and OBS-backed durability. Plan the cost model change carefully: ECR bills storage plus data transfer pulled across AWS network boundaries, while SWR bills storage on OBS plus traffic and, for runtime pulls, the underlying CCE/CCI/EVS egress; recompute TCO using retention period, pull frequency, cross-region and interconnect traffic, and any P2P acceleration benefit before production cutover.
Huawei Cloud
Huawei equivalent service
Shortname: SWR
General function: Container Registry
Container image repository service.
Keywords: container registry, image repo, artifact