docker introduction and deployment of micro-services - study notes

Recently the company further to windows, linux + towards cloud based.

Had a big lump windows server virtual machine to be turned linux, linux now go, then docker will definitely have to get involved.

Therefore, learning relevant content docker entry.

The main contents of the following accessories in the PDF were learning, --- of course, you can also control official documents docker step by step in-depth study.

https://blog.docker.com/2016/09/build-your-first-docker-windows-server-container/

 

 

2013 release date, Docker has been widely publicized, it is considered likely to change the software industry.
However, many people do not know what Docker in the end is that to solve any problem, benefits and where? Today to detailed
fine explanation to help you understand it, also with a straightforward example, teach you how to use it for daily development.
About Docker
 Docker container is an open source engine that helps deliver applications more quickly. Docker can applications and infrastructure
facilities isolation layer, and is capable of the same infrastructure as program management. Docker can use faster packaging, test
and deploy applications, and can shorten the deployment cycle from writing to run the code.
Docker advantages are as follows:
1, simplify procedures
Docker allows developers to package their applications and dependencies into a portable container, and then publish to any
on popular Linux machine, you can virtualize. Docker changed the way virtualization, enabling developers to directly
access their results into the Docker for management. Convenience is the biggest advantage Docker has in the past required
number of days or even weeks of tasks in process Docker containers only need a few seconds to complete.
2, avoid selecting phobia
if you have a choice phobia, or experienced patients. Docker help you pack your tangle! For example Docker mirror;
Docker mirror configuration and includes the operating environment, it is possible to simplify the deployment of multiple applications Docker working examples. Ratio of
such a Web application, background application, database applications, data applications such as large Hadoop cluster, message queue, etc.,
can be packaged into an image deployment.
3, save money
On the one hand, the cloud computing era, so that developers do not have effect in order to pursue high configuration hardware, Docker changed the
thinking of high-performance high price given the inevitable trend. Docker combined with cloud to cloud space to be more fully utilized. Not only solution
must manage the problem of hardware, but also changed the way of virtualization.
Docker architecture

 

 


Docker daemon (Docker daemon)
Docker daemon is running on a host (DOCKER-HOST) background processes. By
Docker clients communicate.
Client (Docker client)
Docker Docker client is a user interface that accepts user commands and configuration identifier, and the Docker
communication daemon. Figure, docker build Docker are all related commands.
Images (Docker Mirror)
Docker image is a read-only template that contains the instructions for creating a Docker container. It has a CD-ROM system
the point image, using the system can be installed CD-ROM system, similarly, the mirror can be used to run Docker Docker mirror
program like the.
Container (container)
container is a running instance be mirrored. Relationship between the mirror and the container somewhat similar to the object-oriented, object classes and off
line. To start and stop by Docker API or CLI command, move, delete container.
Registry
Docker Registry is a mirror image of centralized storage and distribution services. After constructing Docker mirror, you can be in the
running on the current host. But if you want to run this image on other machines, you need to manually copy. At this time you can
aid to avoid Docker Registry manually copied image.
Registry may comprise a plurality of Docker Docker depot, repository may comprise a plurality of mirrors each tag, each
tag corresponds to a Docker image. This is somewhat similar with the Maven repository, if the Docker Registry
Compared to the Maven repository, then you can understand the path Docker warehouse pack for a jar, mirrored label can be
understood as the version number of a jar.
Docker installation
Docker is an open source commercial product, available in two versions: Community Edition (Community Edition, abbreviated as
CE) and Enterprise Edition (Enterprise Edition, abbreviated as EE). Enterprise Edition includes a number of fee-based services, individual developers
are generally less than. The following are introduced for Community Edition.
Docker CE installation please refer to the official documentation.

 --------------------------------------------

One of the little twists and turns practice is for the first time to write Dockerfile, pdf direct copy of the order. And then it has been an error.

 

 The top two, copied to Dockerfile. Then run docker build, the result has been an error:

/bin/sh: 1: cannot create /usr/share/nginx/html/index.html: Directory nonexistent

 

 ---- finally found the result is caused by a space, copied into space, and manually hit the space is not the same, knock back again a space, just fine. Initially determined that Character Set.

I hope people can help the same problem.

--------------------------------------------

Learning materials as follows:
Docker introduction and deployment of micro-services 

Thanks, Turing Institute, Zhuge open class information provided by the teacher

Guess you like

Origin www.cnblogs.com/java2sap/p/11460803.html