DEV Community

Rajasneha
Rajasneha

Posted on

Containers: Under the hood

Alt Text

When we move the app across environments like Developemnt, staging and production, we would have faced compatibility issues.

Containers solves this "dependency hell".

Alt Text

Virtual machines virtualizes on hardware level, which takes a dig at performance.

Alt Text

Docker uses LXC - linux containers, which sandboxes processes through namespaces.

LXC also provides cgroups - control groups, developed by google, for resources accounting and limiting.

Alt Text

Docker also uses CoW strategy, where all the containers share the same file system, the moment when a process in container wants to write to the file system, it makes a copy and writes on it.

More on - https://www.rsforce.net/post/what-are-containers-under-the-hood

Top comments (3)

Collapse
 
manishfoodtechs profile image
manish srivastava

Hey nice draws rajasneha

Collapse
 
manishfoodtechs profile image
manish srivastava

Meet her dev.to/aurelievache
Similar passion like u

Collapse
 
rajasneha_dev profile image
Rajasneha

Hey, thanks for letting me know.