You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [Scanning the Image and Linting the Dockerfile](#scanning-the-image-and-linting-the-dockerfile)
52
53
- [Profiling](#profiling)
53
54
4. [Conclusion](#conclusion)
54
-
55
+
```
55
56
56
57
57
58
@@ -63,7 +64,7 @@ Today I'll explore how Docker facilitates the creation of reproducible and isola
63
64
64
65
Docker is a platform that uses containerization to package and run applications in isolated environments called containers. These containers are lightweight and portable, containing everything needed to run the application, including code, runtime, system tools, libraries, and settings.They provide an abstraction layer between one or more processes (i.e., an application) and the OS on which they run. A container packages these processes and their underlying dependencies together so that they can be easily implemented on any OS that supports the container infrastructure. Under the hood, Docker leverages several Linux kernel features, such as cgroups (control groups) for resource isolation, namespaces for process isolation, and UnionFS (Union File System) for layering file systems.
65
66
66
-
**Docker vs Virtual Machine**
67
+
## Docker vs Virtual Machine
67
68
\
68
69
*Figure 1: docker vs vm - [plant_uml](//www.plantuml.com/plantuml/dpng/dP9FY_8m48Vl_HI3TtbfUdzHTvTTOVy8mbvBh8C6swGagOii_UuR8mcDiTXwgMPuydl2pCoKfb8tLPce0-CrbRI2GbIruCZrMfzA18c5fdnNOfBKj3ZG7SBacvbBj8GFMkmPHvXBywiDs4YSm6y20FwUmT-4ql2rdW1Li3V_Sw7oOnLHfnhbaIaXBw0_Mj2xNnkqQP0wqrNEOlcv_lU-N5ny6yPLNhBDsPZUmkUh5QGMfNMTkdUrFL8oMahwfCH9oJrfDbgQzKap9yr2wVdJcGrCj-A7J_zVJQ5pz4JSuA3YET_T-p4aYY7T638m9ejYCi-v3hIThNuMnG7b8ykyjJT3qkUzy1tZQFaBbwEjXCD-4bnJKvKZzzh91-nszvbjdvqyP1-mvB7TVi8M-lb4dGehdhlTXgZg-Q0FWrF9pTHmALrgcyoGRvkg_0C0)
69
70
@@ -80,7 +81,7 @@ Docker is a platform that uses containerization to package and run applications
80
81
81
82
82
83
83
-
**Key Components of Docker:**
84
+
## Key Components of Docker
84
85
85
86
1.**Docker Daemon (`dockerd`):** This is the persistent background process running on the host machine. It listens for Docker API requests and manages Docker objects such as images, containers, networks, and volumes.
86
87
@@ -92,7 +93,7 @@ Docker is a platform that uses containerization to package and run applications
92
93
93
94
94
95
95
-
**Linux Mechanisms Leveraged by Docker:**
96
+
## Linux Mechanisms Leveraged by Docker
96
97
97
98
-**cgroups (Control Groups):** Used for resource isolation, allowing Docker to limit and prioritize CPU, memory, disk I/O, and other resources for containers.
98
99
-**Namespaces:** Used for process isolation, providing each container with its own namespace for processes, network interfaces, file systems, and more.
@@ -104,7 +105,7 @@ Key namespaces utilized by Docker include:
104
105
- UTS Namespace: Isolates host and domain names, creating a unique identity for containers.
105
106
-**UnionFS (Union File System):** Used for layering file systems, enabling Docker to create images efficiently by layering changes on top of existing file systems.
0 commit comments