docker: docker basic understanding of

1. What is the docker

  Simple to understand: docker VMvare equivalent, the container corresponding to a plurality of virtual machines, the virtual machines can run on VMvare ubantu16.04, centos can run a virtual machine, a virtual machine can run redhat.

  Container: completely isolated environment, for example, a two vmvare virtual machine is isolated from each other . Each virtual machine had to install the operating system, but the container does not need to install the operating system. Container relatively lightweight. If you need to run the program on a new computer, it will have the original environment and rely on a separate copy, such as a copy of the entire virtual machine, it can be achieved. But if the program runs on the server, copy the virtual machine from the local to the server is too much trouble, you only need to re-download the environment and related libraries on the server and other, more time-consuming.

  But: You can use docker container compressed , uploaded to the server , the server by docker compression container solution , it can directly run, thus improving efficiency. Tantamount to tell this environment and dependence are copied to the server.

 

2.docker overall structure

3.docker underlying technology

4.docker version

  ce versions: Community Edition security is low 

  ee versions: Enterprise Edition safe

5.docker installation

6.docker version View

  

7.docker accelerator settings

  Acting equivalent accelerator to speed up the image to download the official repository of speed.

  Ali cloud search docker --- get accelerator address --- / etc / docker / deamon.json file, add the accelerator address

8.docker mirror image

  docker docker image is performed on the file that contains the code needed to operate and environment dependent libraries and configuration files.

  Mirror --- --- create a container (or a plurality)

  Image search

  docker docker search ubantu in the official repository search ubantu mirror image

  

  View Mirror (local)

  docker images/ docker image ls

  

  IMAGE ID: fingerprint image, different image of the fingerprint, is unique.

  TAG: version number

  CREATED: Creation Time

  SIZE: image size

  Mirror Download

  docker pull centos default download the latest image

  

  Sometimes: there will be situations need to log docker official website

    The reason is: it does not correspond to the warehouse to find the name of the mirror.

  

  Delete Mirror

  docker rmi hello-world

  

  

Guess you like

Origin www.cnblogs.com/meloncodezhang/p/11443165.html