The main features are as follows:
1. File system isolation
Each process container runs in a completely independent root file system.
2. Resource isolation
You can use cgroup to allocate different system resources, such as CPU and memory, to each process container.
3. Network isolation
Each process container runs in its own network namespace and has its own virtual interface and IP address.
4. Copy-on-write
Use copy-on-write to create the root file system, which makes deployment extremely fast and saves memory and hard disk space.
5. Logging
Docker will collect and record the standard stream (stdout/stderr/stdin) of each process container for real-time retrieval or batch retrieval.
6. Change Management
Changes to the container file system can be committed to new images and reused to create more containers without using templates or manual configuration.
7. Interactive Shell
Docker can allocate a virtual terminal and associate it to the standard input of any container, such as running a one-time interactive shell.
Recommended tutorial: docker tutorial
The above is the detailed content of What are the main features of docker. For more information, please follow other related articles on the PHP Chinese website!