English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Docker Tutorial

This tutorial is suitable for anyone interested in learning how to use Docker as a container service. The product has spread like wildfire throughout the industry and has indeed had an impact on the development of the next generation of applications. Therefore, anyone interested in learning all aspects of Docker should read this tutorial.

 

Docker is an open-source application container engine based on Go language   and comply with Apache2.0 protocol is open source.

Docker allows developers to package their applications and dependencies into lightweight, portable containers, and then publish them to any popular Linux machine, also achieving virtualization.

Containers are completely sandboxed, with no interfaces between them (similar to iPhone apps), and more importantly, the container performance overhead is extremely low.

Docker from 17.03 After the version is divided into CE (Community Edition: Community Edition) and EE (Enterprise Edition: Enterprise Edition), we can use the community edition.

Who is suitable for reading this tutorial?

This tutorial is suitable for operations engineers and backend developers. By this tutorial, you can step by step understand the use of Docker.

Before reading this tutorial, you need to understand the following knowledge

Before reading this tutorial, you need to master the common Linux commands. You can learn more through our Linux Tutorial To learn related commands.

Application scenarios of Docker

  • Automated packaging and release of web applications.

  • Automated testing and continuous integration, release.

  • Deploy and adjust databases or other background applications in a service-oriented environment.

  • Compile from scratch or extend existing OpenShift or Cloud Foundry platforms to build your own PaaS environment.

Advantages of Docker

Docker is an open platform for developing, delivering, and running applications. Docker enables you to separate your applications from the infrastructure, allowing for rapid delivery of software. With Docker, you can manage infrastructure in the same way you manage applications. By leveraging Docker's methods to quickly deliver, test, and deploy code, you can greatly reduce the delay between writing code and running code in the production environment.

1Quickly and consistently deliver your applications

Docker allows developers to work in a standardized environment with local containers of applications or services you provide, thus simplifying the development lifecycle.

Containers are very suitable for continuous integration and continuous delivery (CI / CD) workflow, consider the following example plan:

  • Your developers write code locally and use Docker containers to share their work with colleagues.

  • They use Docker to push their applications to the test environment and perform automatic or manual tests.

  • When developers find errors, they can fix them in the development environment and then redeploy them to the test environment for testing and verification.

  • After the test is completed, push the patch to the production environment as simply as pushing the updated image to the production environment.

2Responsive deployment and expansion

Docker is a container-based platform that allows highly portable workloads. Docker containers can run on the developer's local machine, physical or virtual machines in data centers, cloud services, or hybrid environments.

The portability and lightweight characteristics of Docker can also make it easy for you to complete dynamic management tasks, and expand or dismantle applications and services in real-time according to business needs.

3Run more workloads on the same hardware

Docker is lightweight and fast. It provides a feasible, economic, and efficient alternative to virtual machine management programs, allowing you to utilize more computing power to achieve business goals. Docker is very suitable for high-density environments and small and medium-sized deployments, and you can do more with fewer resources.

Related Links

Docker Official Website:https://www.docker.com

Github Docker Source Code:https://github.com/docker/docker-ce

This tutorial explains all aspects of Docker container services. Starting from the basic Docker installation and configuration, it gradually shifts to advanced topics such as networking and registries. The last few chapters of this tutorial introduce the development aspects of Docker, as well as how to start and run Docker containers in the development environment.