Got it

Docker on Huawei Cloud ECS for containerization Highlighted

Latest reply: Sep 3, 2021 19:53:29 672 21 10 0 1


Dear Fellows,

Today I am going to show how to install and run Docker for containerizing apps/web pages on ECS (Elastic Cloud Server) of Huawei Cloud and if you are familiar with ECS then we are good to go and if not please review this article, link given below

https://forum.huawei.com/enterprise/en/an-in-depth-guide-to-building-network-ecs-on-huawei-cloud/thread/706775-893

Procedure

First we will deploy ECS on Huawei cloud the procedure is given in the linkthen we will install Docker on ECS and before that some information about Docker and containerization.

Docker

An open-source engine for quickly building a lightweight, portable, self-contained container for any application. Containers that pass the compilation check, such as VMs, bare metal, OpenStack Clusters, and other fundamental application platforms, can be deployed in batches in the production environment.

015403xtoftwc7ofoatmmq.jpg

Containers by Docker

Containers are used to standardize software and dependencies, isolate programs from one another, and run on a variety of common operating systems. Containers are comparable to virtual machines. Virtualization is isolated at the physical resource layer, while containers are isolated at the application layer.

 

Containers address a number of issues with virtualization technology. Containers may usually be utilized in conjunction with VMs, as is the case in most data centers.

Setting up ECS

For installing of Docker, we need ECS to be up and running ECS, then take SSH access using remote login

015404usx7z7e8hpkxjk7l.png

We have logged in to ECS

015404wn8ne0nykn8xui30.jpg

Install Docker

As we have selected CentOS image while deploying ECS, now we install Docker on ECS

This document uses the following versions

  • CentOS 8.2

  • Docker Community Edition 20.10.8

015405w2mcx5j7cp6vb00z.png

Start with initiating new updates

# sudo yum update


Install the required packages. yum-utils provides the yum-config-manager utility, and device-mapper-persistent-data and lvm2 are required by the devicemapper storage driver.

# sudo yum install -y yum-utils device-mapper-persistent-data lvm2

# sudo yum-config-manager \--add-repo \https://download.docker.com/linux/centos/docker-ce.repo

 

Snapshot during installation

 

015406ib4ik3ahiev46yvk.jpg

 

015407dxaxjefxzjbmomti.png

015408n5qjzqdcjjmbjttq.jpg

015409spx7pfiga027piig.png

015410inm2dxbbsbuqns6x.png

Installing required repo packages.

015411o3ooatmfpbiv8nho.png

Use the following command to set up the stable repository for Docker community edition

# sudo yum install docker-ce 

 

015412u7diy5b5rxmxol1d.png

 

015413rjgdt0wav5qj4q64.png

 

Starting DOCKER & Setting up Docker Service on Startup

# docker systemctl start docker

# sudo systemctl enable docker

 

015414yp078yimqsxfyjxy.png

 

You can test if docker is installed by using the following command

# docker version


015415rm5xo7pxoys9puak.png

Now Some useful commands of docker.

Check images available

# docker images ls

 

Pulling image from docker registery

# docker pull <image name>

 

Checking container running

# docker ls


015416r8qeifegr10oi8nn.png

015417wmme7a9oohdfbwdn.png

Quick remark

 Now Docker is installed and running on ECS of Huawei Cloud , we are good to go for containerize our Apps and take benefits of Fast speed and elegant isolation frames, Low CPU/memory consumption & Quick startup/shutdown

The post is synchronized to: Author groupBAZ's Author Collection

BAZ
MVE Author Created Sep 2, 2021 19:32:32

Posted by MahMush at 2021-09-02 18:58 How do you rate and review your experience with huawei cloud ecs
The feel and reliability of the Huawei CLOUD platform are great. though Huawei reached in top 5 CSPs recently but 30 years of ICT experience is second to none.
They surely be adding for regions/zone in near future with an increase in service offerings.

I must say, the experience is awesome !
View more
  • x
  • convention:

The post is related to the webinar "Cloud-Native approach & Elastic Cloud Server - Huawei Cloud", You may Vote for the webinar https://forum.huawei.com/enterprise/en/webinar-on-cloud-native-approach-elastic-cloud-server-huawei-cloud-deep-dive-series-session-1-vote-now/thread/766765-100289


Checkout post Let’s run Containers on Huawei Cloud ECS – Step-by-Step procedure! as a revision of webinar.

https://forum.huawei.com/enterprise/en/let-s-run-containers-on-huawei-cloud-ecs-step-by-step-procedure/thread/770053-893


View more
  • x
  • convention:

MahMush
Moderator Author Created Sep 2, 2021 18:55:39

Wow wonderful explanation docker
View more
  • x
  • convention:

BAZ
BAZ Created Sep 2, 2021 19:33:29 (0) (0)
Glad you like it ... please share with clouders ;)  
MahMush
Moderator Author Created Sep 2, 2021 18:56:42

Good to see this information on docker installation
View more
  • x
  • convention:

Well done dear! Congrats
View more
  • x
  • convention:

BAZ
BAZ Created Sep 2, 2021 19:28:04 (0) (0)
Thanks alot boy  
MahMush
Moderator Author Created Sep 2, 2021 18:57:52

Looking forward to have some more post on further topics of docker and containerization on huawei cloud ecs
View more
  • x
  • convention:

BAZ
BAZ Created Sep 2, 2021 19:27:51 (0) (0)
Sure. Keep connected with forum :)  
RajK
RajK Created Sep 3, 2021 02:32:44 (0) (0)
Me too  
MahMush
Moderator Author Created Sep 2, 2021 18:58:47

How do you rate and review your experience with huawei cloud ecs
View more
  • x
  • convention:

MahMush
MahMush Created Sep 2, 2021 18:59:25 (0) (0)
Comparing with other vendors how was your experience  
BAZ
MVE Author Created Sep 2, 2021 19:32:32

Posted by MahMush at 2021-09-02 18:58 How do you rate and review your experience with huawei cloud ecs
The feel and reliability of the Huawei CLOUD platform are great. though Huawei reached in top 5 CSPs recently but 30 years of ICT experience is second to none.
They surely be adding for regions/zone in near future with an increase in service offerings.

I must say, the experience is awesome !
View more
  • x
  • convention:

Well done!
View more
  • x
  • convention:

Great demonstration for Docker installation and running on ecs
View more
  • x
  • convention:

A very detailed walkthrough that could supplement actual documentation.
View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.