Run Docker on Alibaba Cloud’s Elastic Compute Service (ECS)

What Is Alibaba Cloud’s Elastic Compute Service (ECS)?

Alibaba Cloud’s Elastic Compute Service (ECS) is a range of elastic cloud-based server products that are simpler and more efficient to manage than physical servers. You can create instances, add memory to scale up when required, build out connected VPCs in different regions, and use them as essential components of Alibaba Cloud’s vast range of cloud products and services.

What Is Docker?

Docker is a management tool that allows you to develop, deploy, and run applications inside containers. This process is known as containerization.


You will need an Alibaba Cloud account. If you don’t already have one, head over to the Free Trial page to get started.

Setting up

First, let’s spin up an Alibaba Cloud ECS instance. Go to the Elastic Computer Service product page and select your region. When you’re ready, click Create Instance.

apt-get install apt-transport-https ca-certificates curl software-properties-commoncurl -fsSL | apt-key add -add-apt-repository "deb [arch=amd64] xenial stable"apt-get update
apt-get install docker-ce
systemctl status docker
docker run hello-world


To summarize, we followed some prerequisite steps and logged into our account on Alibaba Cloud. Next, we built an Ubuntu instance with Alibaba Cloud’s Elastic Compute Service (ECS) and logged into it via ssh.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud


Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website: