×
Community Blog Docker: The Why's and How-to's on Alibaba Cloud

Docker: The Why's and How-to's on Alibaba Cloud

In this article, we will discuss, what Docker is, how it works with Alibaba Cloud, and how can you utilize it.

By Shantanu Kaushik

Cloud computing has brought about an upgrade and a paradigm shift over the traditional methods of hosting, deployment, and usage of applications. Since the dawn of DevOps, Alibaba Cloud has continued its development phase to keep up with the industry practices and trends and to set new industry standards and practices.

The DevOps lifecycle depends on automation alongside good infrastructure and microservices. These microservices are a collection of services that can be configured, reused, and independently maintained. Here comes the need for a container service, as it can leverage the true potential of microservices to provide a more scalable and reliable system.

Alibaba Cloud introduced its container service that provides an option to use either Docker or Kubernetes to manage and maintain your containerized applications.

1
Using IAC as Back-end, with Docker on Alibaba Cloud

The Container Service is a high-performance engine that is highly scalable. It sources a simplified architecture to maintain container management clusters. With the Alibaba Cloud container service, you get the integrated support of virtualization, network, security, and storage. This creates the most optimal solution for you to deploy your containerized applications on the cloud. With microservices support, the container service is the most dependable resource for you on the cloud.

DevOps and Alibaba Cloud have grown to define many industry practices and set multiple standards of operations and delivery. In this article, we will discuss, what Docker is, how it works with Alibaba Cloud, and how you can utilize it. Let's start with a representation of how Docker works:

2

Docker | Alibaba Cloud

Let's take a look at a different visualization of Docker with Alibaba Cloud's container service and leverage it for high performance and reliability. This demonstrates how a developer can utilize the container service alongside the IAC resources and deploy it using a Docker image.

3

Docker is an open-source platform for administrators and developers that was built by developers. It has been designed to build, run, and share containerized applications.

Why Use Docker on Alibaba Cloud?

Docker uses containers. It is a highly supported and lightweight tool that gets your work done with ease. Why should I use Docker instead of Kubernetes? We will answer that question, but first:

Let's discuss the basic advantages of using containers:

  1. When an application is put in containers, it increases the flexibility of that application. Even the most complex applications can be containerized to make them more available and easier to maintain.
  2. DevOps Containers are extremely lightweight since they use the host kernel to leverage system resources and Virtual Machine (VMs).
  3. Integration with cloud services enables a much portable architecture of build, deploy, and run anywhere.
  4. Containers have an architecture that is loosely coupled. As a developer, you can modify one and the others around it will not be affected. This enables easy upgradation or replacement, if necessary.
  5. Containers are self-sufficient and highly secure. Since they are isolated and no additional configuration is required from the user, it makes containerized applications ideal for meeting various security standards.
  6. If and when a datacenter provisions more resources, containers can be replicated and automatically distributed to meet demand.
  7. DevOps implementation using Docker and Alibaba Container Service enables a smooth and reliable solution that has support from many sub-serving solutions.

Docker swarm is used to cluster, schedule, and orchestrate environments that are running on multiple containers with Docker. If you are not running a virtual machine, you don't need to depend on the hypervisor, all you need to do is implement Docker over the Infrastructure and Operating system that are provided by Alibaba Cloud and you are good to go.

How to Deploy Docker with Alibaba Cloud

  • Make sure that you have an Alibaba Cloud account and the necessary service registrations to continue.
  • One already created ECS instance
  • Linux operating system with the correct configuration
  • A VPC network type
  • Public IP address

You can manually install Docker by following the commands below. Make sure that you are already connected to an ECS instance.

yum update
yum install epel -release -y
yum clean all
yum list
yum install docker-io -y
systemctl start docker

This will install Docker by using the YUM repository. After you finish installing Docker, check your installation results by typing in this command:

docker info

You can follow this step-by-step guide on the Alibaba Cloud website to set up the Docker service. You can also check another write-up that shows how to create an Alibaba Cloud Container service application using Docker Swarm.

Docker vs. Kubernetes | Alibaba Cloud

This debate has been in the industry for a very long time The very first thing you need to remember is Kubernetes and Docker are not alternative solutions to each other.

Both leverage the container service and are used for similar operations, like configuration and management of containerized applications, but they vary in their core functionality. There is a helpful comparison chart below:

Kubernetes Docker
Kubernetes can work on Docker and on the Alibaba Cloud Container service Docker works on Docker Swarm, their in-house developed orchestration service. Docker also works with Alibaba Cloud Container service.
Supports microservices Supports microservices
Runs across a cluster Runs across a single node
Much more extensive in its approach Built for developers to have a solution that gives functionality over infrastructure.
Massive industry support has led to multiple organizations opting for Kubernetes. Mature tech that has gone through a lot of evolution

Conclusion

Both Kubernetes and Docker are supported on Alibaba Cloud. You should choose the tool best suited to your DevOps solution. It depends on the size of your management team, the expense ratio you would want to maintain, and how big the organization you are catering to/developing for is.

Both Kubernetes and Docker will get the job done since both are supported and ready applications that leverage the backend services to the fullest. The only requirement here is that you configure your DevOps solution in a way that leverages the true potential of infrastructure provided by Alibaba Cloud.

Next in Line

1. API Gateway – An Introduction

We will discuss the API Gateway and start a 3-part series on API Gateway.

2. Using Web+ (Web App Service) with Alibaba Cloud to Deploy Applications

We will take real-world scenarios and dive-deep into how to utilize the Alibaba Cloud web app service to maximize application capabilities.

The views expressed herein are for reference only and don't necessarily represent the official views of Alibaba Cloud.

0 0 0
Share on

Alibaba Clouder

2,599 posts | 763 followers

You may also like

Comments