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
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.
![]()
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
![]()
We have logged in to ECS
![]()
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
![]()
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
![]()
![]()
![]()
![]()
![]()
Installing required repo packages.
![]()
Use the following command to set up the stable repository for Docker community edition
# sudo yum install docker-ce
![]()
![]()
Starting DOCKER & Setting up Docker Service on Startup
# docker systemctl start docker
# sudo systemctl enable docker
![]()
You can test if docker is installed by using the following command
# docker version
![]()
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
![]()
![]()
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


