To install Docker in Windows 10, follow these steps:
This article mainly records the process of installing Docker on Windows 10. Of course, these steps are also obtained by searching for information on the Internet! The procedure is as follows:
1. Enable Hyper-V
Open Control Panel-programs and functions-enable or disable Windows, select Hyper-V, and click OK,
in the following two steps:
Docker Daemon creates a user-specified process/bin/bash, so/bin/bash's parent process is Docker Daemon
Docker Daemon sets limits for process P5, such as the isolation Environment (namespaces) in which the container's main process P1 is joined, and is subject to resource constraints (Cgroup) as other processes
I recently added support for Docker container logs in the Log collection feature. This article simply talks about strategy selection and how to handle it.
About the container log for DockerI'm not going to say much about Docker, it's going to be hot for two years. Recently I was also deploying some components of the log system into
Log is a very important part of the system, through the log can be found in time the problems in the system, but also to provide clues to repair problems. Docker provides a variety of plug-in ways to manage logs, and this article records the process of using MongoDB to store Docker logs.Data FlowCreated with Raphaël 2.1.2
Start
The basic configuration of Docker + Fluentd + MongoDB was completed in the previous article, "Using the MongoDB storage Docker log." However, in the actual use of the process, but found that Docker generated logs are not immediately written to the MongoDB, there are about 1 minutes of delay.
Consult the FLUENTD documen
to the Nginx master process.
After the Nginx master process receives the signal, it does some processing and then asks the worker process to reopen the log file
Worker process opens a new log file and closes the old log file
In fact, we really need to do the work only two points ahead!
Create a test environment
Assuming that you have Docker installed in your system, here we run an nginx container directly:
$
Attach Attachment Container
Attach can only be used for interactive containers, not for background containers, when we start an interactive container with Docker start or Docker restart, the container is interactive but the container does not have a terminal associated with it. This allows the attach command interaction container to be associated with a terminal.First, give some of the columns.Docker run-i
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.