What is Docker?Docker's English translation “搬运工” means that what he's carrying is what we always say 集装箱Container , Container is an app of any kind, and our developers can use Docker to turn the app into a label, 准化的 可移植的 自管理的 component, We can develop, debug and run in any major operating system.What is the difference between Docker and virtual machine?Conceptu
and the host's 5000 port mappings. It stores the mirrored directory as a/data directory, bound to the/docker-registry/data of the host.Then, the Nginx container will also be created, Nginx container through the-link parameters, and registry container connection, so that the Nginx container will know how to communicate with the registry container (in fact, the registry container IP will be bound to the Ngin
Docker is a new way to achieve a super lightweight virtual machine, in the implementation of the principle and application or VM has a huge difference, the professional name is the application container (application Container). (I personally prefer to call it a virtual machine)
1. Installation
1.1 Installing Docker on Ubuntu 14.04
Prerequisite Requirements:
Kernel version must be 3.10 or above
Follow t
users who use Docker, and the user's container may create doubts if they are seen by unrelated third parties. So, Sun Hongliang, traditional developers are using MySQL's thinking and can't seamlessly move to the Docker world.
Sun Hongliang said that after the advent of Docker, Docker officials also claimed that Docker
Prerequisites
Using Docker recently is a lot more personal than a virtual machine. However, installing Docker under Linux and Windows will overwhelm a group of people that we don't want to see.
This article describes in detail the installation of Docker-ce and Nvidia-docker under Ubuntu, and how to use the domestic im
Docker Introduction
Docker is an open source application container engine that allows developers to package their apps and dependencies into a portable container, and then publish it to any popular Linux machine or virtualization. Containers are completely using the sandbox mechanism, and there will be no interface between each other.
Profile
Docker to give a
Docker daemon program), and the Docker server performs the specific pull-mirroring action, as follows ( docker/graph/pull.go the function of the code snippet pullRepository )As you can see from the code, if the registry Mirror,docker server is configured to pull the mirror from Mirror first, if the Mirror pull failure
Profile
The biggest change in the Docker 1.12 version is the integration of Docker Swarm, which provides a engine model under Docker swarm, which is mainly about Docker swarm.
The Docker engine itself provides only container technology and does not solve container orchestr
Docker management tools and docker ManagementShipyard
Is a Web-based Docker management tool that supports multiple hosts. It can manage containers on multiple Docker hosts in a unified manner, view images, or even build images, and provide RESTful APIs. To manage and control the Do
Several basic methods of Docker container interconnection(1) Container Mount host directory:-v–volumns-from(2) Interconnect between containers: –link(3) External access container:-P(4) Direct use of the host network docker run --rm=true-e MYSQL_ROOT_PASSWORD=123456 mysql # 使用以下命令查看容器IP与主机完全一致 exec -it mydb ip addr(5) A shared IP network for the container
image as a tar package file
Docker-search (1)Search for an image in Docker index
Docker-start (1)Start a container
Docker-stop (1)Terminate a running container
Docker-tag (1)Tag an image
Docker-top (1)View the running process inf
output results of docker inspect, use the grep command to perform the following operations:
$dockerinspect`dl`|grepIPAddress|cut-d‘“‘-f4172.17.0.52
Oh! It looks complicated. Use JQ to parse docker inspect output results professionally, which is more readable and easy to use:
$dockerinspect`dl`|jq-r‘.[0].NetworkSettings.IPAddress’172.17.0.52
The first '.' indicates all results.
packets transmitted, 0 received, 100% packet loss, time 1008ms
It can be seen that the containers in the Net1 are interoperable, but the Net1 and Net2 are isolated between the two overlay net.
Three, multi-host container network communication principle
In the article "stand-alone container network", we said that the communication between containers and the communication of containers to the external network was accomplished by Docker0 Bridge and combining iptables. So how is container communica
Association
Q: We need to Golang correlate containers and Mysql containers, so what do we need to do?
A: Increase the command --link mysql:mysql to allow the Golang container to interconnect with the container, Mysql through --link , can be directly within the container using its associated container alias access , not through IP, but --link only to resolve the
Docker attach command-log in to a container that is already executing (link is external) Docker build command-Create a new image (link is external) Docker commit command-submit a new imag E (link is external)
Linux version: Ubuntu16.04
The first time you install Docker, it is possible to run the Docker command, such as
Docker PS
After restarting the system, the following error occurred after running Docker PS: Cannot connect to the Docker daemon. Is the
lsNAME ACTIVE DRIVER STATE URLdev * virtualbox Running tcp://192.168.99.100:2376production digitalocean Running tcp://104.131.107.8:2376
Set production to activate the machine and load the Docker environment to shell:
$ docker-machine active production $ eval "$(docker-machine env production)"
Finally, l
Docker attach command-log in to a container that is already executing (link is external) Docker build command-Create a new image (link is external) Docker commit command-submit a new imag E (link is external)
Base not defined in file Libd evmapper.so.1.02 with link Time reference second, common command options Usage:docker [OPTIONS] COMMAND [arg ...] Docker search Ubuntu #搜索镜像 Docker pull Ubuntu #获取镜像 (default = Lastest) Docker pull centos:6.6 #获取指定镜像tag Docker [-v]|version
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.