Looking at the history of Docker, you'll find that Docker has been emphasizing the word "application", and Docker wants to provide containerized solutions for distributed applications.From the life cycle of the Docker application
one directly in:
Docker images view downloaded Docker mirrors:
Docker Run-tid--name ubuntu-p 23:22 ubuntu: Name the new Docker as Ubuntu and map to Port 23
NETSTAT-APNL | grep 23 See if Port 23 is open
You can see that port 23 is open.
Docker Exec-ti Ubuntu/bin/bash
, will take the initiative to register their own address information into the Service discovery module, so that other services can know their existence. When the container is stopped, the micro-service needs to log itself out of the service discovery module immediately to prevent the request from the API gateway from being routed incorrectly to the service that has been stopped.
As in the various scenarios above, it is required that an
This is a creation in
Article, where the information may have evolved or changed.
Before Docker 1.9 was born, there were roughly three container communication scenarios across multiple hosts, such as:
1. Port mapping
The port P of host A is mapped to Port P ', which is the network space listener of container C, and is only available for applications and services
Server virtualization refers to the operating system and hardware to add a layer, called the hypervisor layer, the next control hardware, on the host operating system, operating system OS in file form, known as virtual machine, the main problem is the hardware utilization and flexibility of the problem, the common solution for VMware Vsphere,xen,kvm,hyper-v.. Container virtualization refers to the application
This is a creation in
Article, where the information may have evolved or changed.
The research on the container network has been interrupted for some time due to the reasons for the exchange of work in 2016. With the current project to kubernetes application in depth, I feel that before the shallow understanding of the container network is not enough, the
The container is the second core concept of Docker, and the simple one is that the container is a running instance of the mirror, and the difference is that it has an extra writable file layer. If the virtual machine is simulated running a full set of operating systems (providing a running state environment and other system environments) and running on the
--------------------------------------------------------------------------------------
Blog:http://blog.csdn.net/chinagissoft
QQ Group: 16403743
Purpose: Focus on the "gis+" cutting-edge technology research and exchange, the cloud computing technology, large data technology, container technology, IoT and GIS in-depth integration, explore the "gis+" technology and industry solutions
Reprint Note: The article is allowed to reprint, but must be linked to
Basic concepts:
Container
Container. Each container can be viewed as a standalone host. The creation of container usually has an image as its template. Analogy to a virtual machine can be understood as image is the mirror of the virtual machine, and container i
use Docker-enter to enter Docker containerDocker containers do not have sshd service, but also want to enter Docker how to do, we can use the nsenter into the Docker container namespace namespace to virtual login Docker container.
Preface
We have mentioned earlier that if we build the Docker cluster, there will be the need for a Docker instance network connection across the host, and in order to save the IP resources of the host network, we try to use DOCKER0 own network connection, add Host network IP to the main node (container instance), This should be a more desirable business requirem
In front of our lab environment, only one Docker host container is running on this host. However, in a real environment, there will be multiple host containers that start, run, stop, and destroy related containers in these hosts, regardless of whether they are located in the same host.How can we manage such a multi-host environment efficiently?The first problem we faced was installing and configuring
Part-2 container (Container) IntroductionThe Docker architecture has three levels, from high to low as follows:
Stack (Stack)
Services (Service)
Containers (Container)
These are now exposed in the layer of the container, similar to the underlying founda
This article is from the "Knowledge Forest"
Three networks (Docker network LS) are default when the Docker service is successfully installed:
C:\users\zsl-pc>docker Network LS
network ID NAME DRIVER SCOPE
992344cd89fe Bridge Bridge local
06445f4f5774 host host local
2d964ece79b9
1. Docker Container Restart policy
The restart policy for Docker containers is a start-up strategy for production environments that can be ignored during the development process.
Docker container restarts are done by the Docker da
container connection command:
# Docker run-It Ubuntu bash
650) This. width = 650; "Title =" Capture. PNG "alt =" wkiol1gutteb2lmxaabocysjze0260.png "src =" http://s2.51cto.com/wyfs02/M01/8A/5D/wKioL1gutteB2lmXAABOCySJZE0260.png "/>
-I.-T lock the terminal to stdin and stdout.Ubuntu creates an image file for the container.Bash runs on Ubuntu containers
17. use Ctrl + P and CTRL + Q to exit your
' Training/webapp:latest ' locally
This web application for the official Docker, not local, so automatically go to the warehouse download, easy to implement Image,code sharing, and run everywhere.The image is layered, so the build is faster after the change.
[root@201 ~]# Docker PS
CONTAINER ID IMAGE
Docker provides a simple command of the Operation container. But his command of the container does not belong to the system.
Because it is too simple, there must be a lot of deficiencies. For example, starting order, dependency checking, failure service recovery, and so on, all need a mature system service management software to complete.
This article uses Redis
, you need to docker-compose.yml version: ‘2‘ change it to the version version: ‘2.1‘ here.Really is twists, finally is no problem, compile also can pass. But when debugging F5, but it happens to have remote debugging errors ...This time, run the Docker PS command and you can see that our container has startedLet's take a look at the
A wild full-stack engineer configures the scheduled task crontab (DaoCloud + Docker + Laravel5) in a Docker container and prefers to study various new technologies.
Follow Now
Recently, the project involves the function of a scheduled task. so I went to study how to use crontab over the past few days and successfully enabled the function on my computer accord
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.