Take You to Easily Play with Docker Container Technologies

Docker Container Cleanup Tutorial

This tutorial gives you practical experience in cleaning up Docker containers on Alibaba Cloud.

Preparation

To follow this tutorial you need an Alibaba Cloud Elastic Compute Service (ECS) server with Docker already installed. If you are not sure how, you can refer to this tutorial.

Related Blogs

Creating a Docker Container Cluster with Container Service

In this tutorial, we’ll show you how to create a Docker container cluster using Alibaba Cloud’s Container Service.

What Is Alibaba Cloud’s Container Service?

Alibaba Cloud’s Container Service is a scalable, high-performance, container management service that allows you to orchestrate and manage containerized application lifecycles with either Docker Swarm or Kubernetes.

What Is Docker Swarm?

Docker is an open source, virtualization management tool that allows you to develop, deploy, manage, and monitor applications and systems within containers. This process is known as containerization. Docker Swarm is a clustering, scheduling, and orchestration tool for systems and environments that run on multiple and scalable Docker containers.

Why Do I Need to Create a Cluster?

Before we can install a suite of running Docker containers with Alibaba Cloud’s Container Service, we need to have an Alibaba Cloud Container Service Docker Swarm cluster ready and available for implementing our containerized systems.

Docker Container-Centric Commands for Beginners: Part 1

This tutorial provides a quick demonstration of the 25 Docker commands that can be applied against containers.

Bash Aliases

There are 25 docker container commands, and you do not want to type those words repeatedly. Therefore we need aliases.

alias docv='docker volume'alias doci='docker inspect'alias docm='docker image'alias psa='docker ps -a'alias d='docker '

Docker Pull Alpine:3.8

If you know you already have the Alpine 3.8 Docker image you don’t need to do anything here.

docker pull alpine:3.8

Docker Container Resource Management: CPU, RAM and IO: Part 1

This tutorial aims to give you practical experience of using Docker container resource limitation functionalities on an Alibaba Cloud Elastic Compute Service (ECS) instance, including:

Prerequisites

You need access to an ECS server with a recent version of Docker already installed. If you don’t have one already, you can follow the steps in this tutorial.

docker stop $(docker ps -a -q) #stop ALL containers
docker rm -f $(docker ps -a -q) # remove ALL containers

Creating an Alibaba Cloud Container Service Application with Docker Swarm

In this tutorial, we’ll show you how to create an Alibaba Cloud Container Service application environment running on Docker containers managed by a Swarm cluster built up on Alibaba Cloud Elastic Compute Service (ECS) instances that we have already set up in a previous tutorial.

What Is Alibaba Cloud’s Container Service?

Alibaba Cloud’s Container Service is a scalable, high-performance, container management product that allows you to orchestrate and manage containerized application lifecycles with either Docker Swarm or Kubernetes. Container Service comes with an automatic built in Server Load Balancer that is installed Pay-As-You-Go.

What Is Docker Swarm?

Docker is an open source, virtualization management tool that allows you to develop, deploy, manage, and monitor applications and collections of applications that run within containers. This process is known as containerization. Docker Swarm is a clustering, scheduling, and orchestration tool for such systems and environments that are running on multiple and scalable Docker containers.

Why Do We Need a Cluster?

Before we can install a suite of running Docker containers with Alibaba Cloud’s Container Service Docker Swarm option, we need to have an Alibaba Cloud Container Service Docker Swarm cluster ready and available for implementing our containerized systems.

Related Courses

Introduction to Docker Container

This course introduces the basic concepts and features of docker container technology, then showes the steps of basic installation and some frequently used commands. At the same time introduces the the basic concepts and architecture of container service on alibaba cloud, and then shows the steps of container based application creation procedure from scratch.

Implement Blue-Green Deployment with Container Service

Through this certification course, you will understand the basic differences between the container and the virtual machine environment, learn Kubernetes cluster main components, and learn how to use deployment and service to achieve the application of the blue-green deployment.

Alibaba Cloud Container Service Best Practice

This course is designed to enable Developers who want to learn comprehensive knowledge about Docker, Kubernetes and Alibaba Cloud Container Service. We will cover Docker basic, Kubernetes architecture and major concepts like pod, deployment, service, ingress, etc. We will also introduce Alibaba Cloud Container Service’s capabilities, competencies and some best practice on network, storage setup interacting with other Alibaba Cloud products.

Related Market products

Introduction to Docker Container

This course is aiming to provide comprehensive introduction of docker container technology and the container service on alibaba cloud as well.

Using Kubernetes to Manage Containers and Cluster Resources

Through the introduction of basic knowledge of Kubernetes and Alibaba Cloud Container Service, this course enables learners to quickly get started with Container Service for Kubernetes.

Using Swarm to Orchestrate and Manage Containers

Through the introduction of Docker, Swarm and Alibaba Cloud Swarm, this course enables learners to quickly get started with Container Service for Swarm.

Related Documentation

Docker container operations

EDAS supports Docker-based deployment. After Docker-based deployment, you can view the Docker container status on the server.

  1. View the log. You can conveniently view the application deployment log on the EDAS console. To view the log directly on the server, you can run the docker inspect — format {{.LogPath}} $container_id command to locate the application log path of the corresponding container.

How to increase data disks for Container Service Docker?

Docker data is stored on disks by using the union file system. If the number of containers or images needing to be run on the machines is continuously increased, the disk size may not meet the requirements. In this situation, increase the data disks to expand the storage space for Docker data directory.

Docker data directory

For Docker, the container and image data is stored in the /var/lib/docker directory by default. You can check the currently occupied disk size of this directory by running the du command.

Change Docker data disk

Many Docker images are big. Therefore, several images might occupy large disk space, which leads to insufficient disk space. By increasing the data disks for the Docker data directory, the requirements of increasing images or containers continuously can be met.

Related Products

Elastic Container Instance (ECI)

Elastic Container Instance (ECI) is an agile and secure serverless container instance service. You can easily run containers without managing servers. Also you only pay for the resources that have been consumed by the containers. ECI helps you focus on your business applications instead of managing infrastructure.

Container Service for Kubernetes (ACK)

A fully-managed service compatible with Kubernetes to help users focus on their applications rather than managing container infrastructure.

Original Source:

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