A, docker related Overview

1. What is a container

Applications where the container is located, the system environment, the combination of code and resource-dependent, for example, inside the container there tomcat, Java, mysql the like, inside the container barrier inconsistent application or environment, but with different operating systems share a container;

2. What is the docker

docker is a tool for managing container, and formed a set of standards; he realized the container code, and depends called environmental package, and where to put this package can run.

Part of 3.docker

Image (Image): Use AUFS type hierarchy of the file system, that is a mirror image by a plurality of superimposed image is read-only;

The container (Container): increase in the base image on the writable layer, examples of the container corresponds to mirror;

Warehouse (Repository): a place to store the mirror, the biggest public warehouse Docker Hub, store a huge number of images available for users to download. Domestic public warehouse includes Docker Pool etc., can provide a more stable mainland users quick access.

Registry: registration server for managing warehouse mirror, played the role of the server. Repository: Mirror repository for storing specific image docker, play the role of a storage warehouse.

4.docker commonly used commands

docker images: the host View Mirror

docker ps: see the running of the vessel;

docker ps -a: View all containers

and many more

4. Arrangement docker-compose the container

In order to handle large-scale deployment of container.

5.dockerfile

For constructing a custom image.

More than purely personal understanding, not responsible for the authenticity

 

Guess you like

Origin www.cnblogs.com/testerling/p/11784608.html