Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Migrating Images

Updated on 2024-01-26 GMT+08:00

Migrate the images stored in the image repository of CCE 1.0 to CCE 2.0.

This section takes the Apache image as an example to show how to migrate images step by step.

Procedure

Before pushing container images, ensure that the local Docker client can access your private container registry.

  1. Log in to the Docker client as the root user.
  2. Create an organization. Organizations are used to isolate images and assign access permissions (read, edit, and manage) to different users.

    1. Log in to the CCE console. In the navigation pane, choose Image Repository.
    2. On the Image Repository dashboard page, click Create Organization.
    3. Enter an organization name, that is, the domain name. When the configuration is complete, click OK.

  3. Log in to the Docker client as the root user.
  4. Pull the images stored in the image repository of CCE 1.0 to a local directory.

    NOTE:

    To pull images, log in to the CCE 1.0 console. In the navigation pane, choose Image Repository. Click the name of the target images. On the image details pages, you can find corresponding image pull command.

    Example:

    docker pull 10.154.57.150:443/test/apache-php:latest

  5. Connect to CCE 2.0.

    1. Log in to the CCE 2.0 console. In the navigation pane, click Image Repository.
    2. On the page displayed, click Upload Through Docker Client. Click Generate a temporary Docker login command.
    3. Click to copy the command.

  1. Log in to the server where Docker is installed. Run the Docker login command copied in 5.

    After you log in to the Docker client, the system displays the message "login succeeded".

  2. Run the following command to tag the nginx:1.10 image:

    docker tag {imageid} {image address}:tag

    {image address} is the image repository address. If you push an image from an external network, enter the external image address. If you push an image from an internal network, enter the internal image address.

    Example:

    docker tag 2e233ad9329b 10.125.1.15:20202/test/apache-php:latest

  3. Run the following command to push the image to the image repository:

    docker push {image address}:tag

    Example:

    docker push 10.125.1.15:20202/test/apache-php:latest

    If the following information is displayed, the push is successful:

    6d6b9812c8ae: Pushed 
    695da0025de6: Pushed 
    fe4c16cbf7a4: Pushed 
    1.10: digest: sha256:eb7e3bbd8e3040efa71d9c2cacfa12a8e39c6b2ccd15eac12bdc49e0b66cee63 size: 948

    On the SWR console, choose My Images. The pushed images are displayed in the image list.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback