I examined the concept of the process to understand how Docker works

As I studied Docker, I needed to understand the concept of the process in order to understand how Docker Engine works, so I investigated the details of the process.

A container exists as a process on the host OS, like Docker Daemon, which manages the creation, start, and deletion of containers. Since it is a process on the host OS, resources such as CPU, memory, and network can be accessed via the host OS in the same way as a standalone application on other host OS, and when the process ends, it is retained in memory. I understand that it is natural that the operation data on the container that is being used will also disappear.

■ What is a process? A process is a resource execution management unit such as a CPU on the OS that loads the binary code stored in the HDD etc. into the memory by the scheduler of the OS and makes the CPU executable.

■ Differences between processes and threads 1 program ⇒ 1 process Multiple threads can be run in one process (single thread and multithread) Thread executes instructions in process 1 thread uses 1 CPU core One CPU can contain multiple CPU cores.

Memory space is allocated on a process-by-process basis Share the memory space of the process to which the thread belongs

■ Difference between single process and multi-process Single process: Thread ①: Start cooking ⇒ Cook rice ⇒ Stew curry ⇒ Serve on a plate ⇒ Finish cooking Multi-process: Thread ①: Start cooking ⇒ Start process ② ⇒ Cook rice ⇒ Process ② Wait for completion ⇒ Finish cooking Thread ②: Cook curry

Recommended Posts

I examined the concept of the process to understand how Docker works
I tried to summarize the state transition of docker
Understand the basics of docker
I tried to build the environment of WSL2 + Docker + VSCode
I want to narrow down the display of docker ps
I want to understand the flow of Spring processing request parameters
I tried to understand how the rails method "redirect_to" is defined
I tried to understand how the rails method "link_to" is defined
How to determine the number of parallels
How to sort the List of SelectItem
The process of introducing Vuetify to Rails
Understand in 5 minutes !! How to use Docker
[Spring Boot] I investigated how to implement post-processing of the received request.
After all I wanted to preview the contents of mysql with Docker ...
How to find the cause of the Ruby error
I want to output the day of the week
How to check the logs in the Docker container
Customize how to divide the contents of Recyclerview
I want to var_dump the contents of the intent
How to get today's day of the week
Output of how to use the slice method
How to display the result of form input
How Docker works ~ Implement the container in 60 lines
[Java] How to get the authority of the folder
How to display the amount of disk used by Docker container for each container
[Java] How to get the URL of the transition source
Rails The concept of view componentization of Rails that I want to convey to those who want to quit
How to delete / update the list field of OneToMany
How far is the correct answer to divide the process?
How to install Docker in the local environment of an existing Rails application [Rails 6 / MySQL 8]
How to write Scala from the perspective of Java
I was addicted to the record of the associated model
[Ruby] How to find the sum of each digit
05. I tried to stub the source of Spring Boot
Understand the characteristics of Scala in 5 minutes (Introduction to Scala)
I tried to reduce the capacity of Spring Boot
How to install the root certificate of Centos7 (Cybertrust)
[Java] How to get the maximum value of HashMap
I want to know the answer of the rock-paper-scissors app
I want to display the name of the poster of the comment
[Rails] How to change the column name of the table
How to install Docker
[SwiftUI] How to specify the abbreviated position of Text
[Docker] How to see the contents of Volumes. Start a container with root privileges.
[Android] How to get the setting language of the terminal
[WIP] I tried the configuration of Docker + Streama + NFS
[Rails] How to get the contents of strong parameters
How to judge the click of any area of the image
How to download the old version of Apache Tomcat
[Swift] How to get the document ID of Firebase
I want to be aware of the contents of variables!
I want to return the scroll position of UITableView!
I checked the specification of how to specify cell attributes of AsciiDoc table & internal implementation of Asciidoctor
I can't find the docker image after updating to docker desktop 2.4.0.0
I didn't understand the behavior of Java Scanner and .nextLine ().
How to display the select field of time_select every 30 minutes
I tried to summarize the basics of kotlin and java
Now, I understand the coordinate transformation method of UIView (Swift)
I want to expand the clickable part of the link_to method
I want to change the log output settings of UtilLoggingJdbcLogger
[Swift] I tried to implement the function of the vending machine