Lurker News

Comments (97) 26 threads

Show all comments

Showing thread 6 of 26

_xhok5 replies#
Can someone please explain what a container is? Googling 'container' doesn't seem to give me useful or relevant results.
chebucto1 reply#
I had the same question. I was eventually plopped here:

https://en.wikipedia.org/wiki/Operating_system-level_virtual...
"Operating system-level virtualization is a server virtualization method where the kernel of an operating system allows for multiple isolated user-space instances, instead of just one. Such instances (often called containers, VEs, VPSs or jails) may look and feel like a real server, from the point of view of its owner. On Unix systems, this technology can be thought of as an advanced implementation of the standard chroot mechanism. In addition to isolation mechanisms, the kernel often provides resource management features to limit the impact of one container's activities on the other containers."

philips1 reply#
A Linux machine has the Kernel which deals with the hardware and then a filesystem with everything required to run applications. A container is a Linux machine without the Kernel.

As an example: with containers you can run a database that needs a CentOS environment on the same physical machine that is running an application server that expects a Debian looking environment. All without the performance hit you would take from VMs.

nzgrover1 reply#
So... it's a chroot jail?
philips1 reply#
In a way. However, you can run a full machine from init on down and fully isolate networking, process namespaces and resources like memory or CPU.

Continue this thread — 1 reply

gojomo1 reply#
Indeed, while the name 'container' is apt and helpful for the analogy to standardized shipping-containers, is somewhat generic and has many collisions.

Maybe it needs an extra distinguishing flourish for distinction? Kontainer? Softainer? DContainer?

damncabbage#
"LXC" (for LinuX Container) will get you what you're looking for.