What Is a Container? The OS-Level Truth Most Engineers Don't Know
"You Keep Using That Word" Dispelling Container Misconceptions at the OS Level Before we write a single line of code, we need to kill the buzzword fog. What a Container Actually Is The marketing de...

Source: DEV Community
"You Keep Using That Word" Dispelling Container Misconceptions at the OS Level Before we write a single line of code, we need to kill the buzzword fog. What a Container Actually Is The marketing definition you have heard a hundred times: "a container is an executable unit of software with its dependencies bundled together." That is not wrong, but it tells you nothing useful about what is actually happening on the machine. Here is the OS-level truth: a container is a process (or a tree of processes) that the kernel runs with a restricted view of its own namespaces and a cgroup-enforced ceiling on the resources it can consume. That is the entire trick. No hypervisor, no guest kernel, no virtualized hardware. Just a process with a carefully constructed set of constraints. Everything else in this article is evidence for that single claim. Spin up a simple HTTPD container I used the following podman command to spin up the HTTPD container with limited amount of resources. podman run -d \ --n