Docker tool Chain Overview

Source: Internet
Author: User
Tags docker compose docker run docker swarm

Directory

    • Docker tool Chain Overview
      • Docker noun explanation
      • About Docker
      • Docker-machine Introduction
      • Docker-compose Introduction
      • About Docker Swarm
        • About Docker Service
        • About Docker Stack
      • Summarize
Docker tool Chain Overview

Official reference documents

? This article focuses on what Docker is, what it is, and how the tool chain is outlined.

? Docker is a relatively new container technology, of course, container technology is not a new technology, if you have not been exposed to the concept of containers, you may have a night container all over the world feeling. My earliest contact with Docker is also around 2015, a chance to try the Cloud foundry, then learned that the container is what, met Docker is very favorite, because the work environment has not been tried, so has been unable to study it in depth, Today's Docker compared with a few years ago there has been a great change, a variety of tool chains are relatively perfect, technology is relatively mature, with the birth of micro-services, Docker application scenario is to be played incisively and vividly, if you do not catch up with the ugly and huge enterprise-class applications, Now you can enjoy the short and short service times.

Docker noun explanation
    1. Docker is officially explained as a Docker engine, a container technology that combines client and server.
    2. A docker image, such as a system ISO file, is often called mirroring, which is just a static file.
    3. Docker container, when an ISO file is installed on the hard disk and then become a system, you can install the ISO on more than one hard disk, then each system corresponds to the concept of Docker container, or you can also understand as an instance, the container (instance) is dynamic and the mirror is static.
About Docker
    1. Docker is a containerized technology used to manage containers, and as a container, it can hold one or more programs.
    2. A docker container is a standalone program that is called a standalone program that can package your program and isolate it from other programs within the system, and the isolation boundary is the Docker container itself.
    3. A docker container is a complete whole that can be executed, and when you create a Docker container, Docker packs all of the programs you want to run within the container and all the dependencies of the program (which, of course, is not automatic, and Docker needs you to specify exactly what your program depends on).
    4. Docker containers are a cross-platform application, Docker containers can run on platforms such as Unix/linux/win (but the win container is incompatible with Unix/linux, Docker initially only supports the Linux kernel), Docker containers do not depend on your current system, only the Docker engine itself (Docker engine is the abbreviation for Docker).
Docker-machine Introduction
    1. Docker-machine is used to create a Docker runtime environment, you can use Docker-machine to create a docker-based environment, where the driver refers to a variety of virtual machine environments, such as: VIRTUALBOX,VM,HYPER-V, etc. More drive types are here.
    2. Docker-machine is used to manage the Docker runtime environment, and if you create a Docker runtime environment with multiple drive types in the previous step, Docker-machine can manage these docker environments, such as viewing environment information such as deleting and modifying the environment , such as executing shell commands in the specified Docker runtime environment.
Docker-compose Introduction

Docker-compose is primarily used to create Docker containers, and you might want to ask, since Docker can create a container why docker-compose it?

For example, using a shell command to create a folder and create a file within a folder, you only need to execute two shell commands, and if you do the same thing on many other machines? Do you want each machine to enter commands manually? The answer is no, you must be thinking of using a shell script to solve the problem, the creation of folders and the creation of a file command to script and distribute the script to different machines to run. Yes, that's what docker-compose used to do. You can write one or more containers that you need to create into a docker-compose supported script.

In fact, Docker-compose supports a yml extension file, which records the configuration information of one or more containers you want to create so that you can distribute YML files to different machines and create containers through Docker-compoe.

About Docker Swarm

Docker swarm is used to manage Docker clusters, and when we deploy a service, we usually consider that the service will not be terminated because of special circumstances, in order to avoid the special situation caused by the service termination, usually a common way is to monitor, if the service terminated unexpectedly we restart it, This is what Docker swarm is going to do, in addition to the Docker swarm also deploys the service to any cluster node, ensuring that the service is always available.

About Docker Service

Docker service is used to create Docker services, so what is Docker service, if you are deploying a Docker container, you can usually run the Docker Run command, if in a Docker cluster at this time, Then the command will only create a container on the machine where the command is run, and if you are deploying multiple instances of a Docker container, then the Docker service is here to solve the problem, you only need to go through the Docker service The Run command allows you to deploy your container instances on any node of the cluster, and you can specify the number of container instances that need to be run, usually just by setting the specified parameters.

About Docker Stack

At this point, I do not particularly understand the role of the Docker stack, from the introduction of the official website I understand as docker compose + docker swarm , this explanation seems a bit far-fetched, for the time being so understand, after all, Docker stack in the Docker swarm environment, it makes sense, Later understood in the update this section of the introduction.

Summarize

? Docker in some of the tools and the idea is probably so much, here is just a brief introduction, if you are a novice then this article must have a lot of help for you, because I also came along, do not expect their articles more advanced, just hope you can let you quickly understand what Docker is.

Look Back:

? Docker is a container-based technology that combines client and server, you can create some Docker containers with Docker commands, and you can create some Docker containers in bulk using the Docker compose command, if your environment is large enough, Docker swarm can make your Docker management easier, Docker service lets you create reliable service instances, and Docker stacks can make it easier to deploy Docker containers.

Docker tool Chain Overview

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.