Skip to content
0:00 / 0:00

#docker#cgroups#namespaces

Cgroups, namespaces, and beyond: what are containers made from?

Docker

116K subscribers • 1 video on Hallway

YouTube
  • Recommended by 4 people: 4 on Hacker News.
  • A classic. People kept recommending it from 2017 to 2023.
  • Presented by Jérôme Petazzoni, Tinkerer Extraordinaire at Docker
  • Made by the vendor. The company whose product it covers made or sponsored it.
  • May be out of date. Uploaded 10 years ago, in an area where tools change fast.

Intermediate. Assumes working knowledge.

267K views10 years ago4 recommendations

Systems programmingCloud and DevOpsDocker and containersLinuxOperating systems

Jérôme Petazzoni explains the Linux kernel features like cgroups and namespaces that form the foundation of modern containers.

with Jérôme Petazzoni, Tinkerer Extraordinaire, Docker Linux containers are different from Solaris Zones or BSD Jails: they use discrete kernel features like cgroups, namespaces, SELinux, and more. We will describe those mechanisms in depth, as well as demo how to put them together to produce a container. We will also highlight how different container runtimes compare to each other. Learn more about Docker docker.com/what-docker -- Docker is an open platform for developers and system administrators to build, ship and run distributed applications. With Docker, IT organizations shrink application delivery from months to minutes, frictionlessly move workloads between data centers and the cloud and can achieve up to 20X greater efficiency in their use of computing resources. Inspired by an active community and by transparent, open source innovation, Docker containers have been downloaded more than 700 million times and Docker is used by millions of developers across thousands of the world’s most innovative organizations, including eBay, Baidu, the BBC, Goldman Sachs, Groupon, ING, Yelp, and Spotify. Docker’s rapid adoption has catalyzed an active ecosystem, resulting in more than 180,000 “Dockerized” applications, over 40 Docker-related startups and integration partnerships with AWS, Cloud Foundry, Google, IBM, Microsoft, OpenStack, Rackspace, Red Hat and VMware.

Why it's here

4 people recommend this

What people say. Highly recommended for demystifying how Docker and Linux containers work under the hood.

dominotwon Hacker News • Recommends

On “Demystifying container runtimes”

I watched this talk couple of years ago that made docker/containers finally click for me. Cgroups, namespaces, and beyond: what are containers made from? - Jérôme Petazzoni, link to this video

dmpanchon Hacker News • Recommends

On “Build Your Own Docker with Linux Namespaces, Cgroups, and Chroot”

This topic is perfectly covered in a presentation by Jérôme Petazzoni from Dockercon 2015, a Docker developer, on how containerization works. After watching the video, I began to clearly understand that this is not virtualization at all, as many at first imagine. link to this video

antoncohenon Hacker News • Recommends

On “Ask HN: Good resources on learning how docker works under the hood?”

Jérôme Petazzoni's talk on cgroups, namespaces, etc. I think he has given the talk a bunch of times, I saw it in person once, here is a video I found: link to this video He goes into cgroups, namespaces, etc. Then does a demo where is manually does what docker does, like untars an image, creates namespaces, creates the networking.

hardwaresoftonon Hacker News • Recommends

On “A Workshop on Linux Containers: Rebuild Docker from Scratch”

In the same vein: Building a container from scratch in Go (Liz Rice) @ Container Camp 2016 -> link What's a container really let's write one in go from sctach (Liz Rice) @ Golang UK Conference -> link Cgroups, Namespaces and beyond: What are containers made from (Jerome Petazzoni) @ DockerCon 2015 - link to this video Building Containers in Pure Bash and C (Jessica Frazelle) @ ContainerSummit 2016: link First two are basically the same talk, but it doesn't hurt to hear the same ideas more than once.

Bayarton Hacker News • Mentions

On “We're migrating many of our servers from Linux to FreeBSD”

>There is controversy about Docker not running on FreeBSD but I believe (like many others) that FreeBSD has a more powerful tool. Jails are older and more mature - and by far - than any containerization solution on Linux. If FreeBSD jails and Solaris zones were equivalent to Linux containers, we'd have seen them take over the backend already. We haven't. They're really useful, they provided a degree of safety and peace of mind for multi-tenancy but they're not granular enough for what's done with $CONTAINER_RUNTIME these days. Jérôme Petazzoni has an old talk where he touches upon container primitives and compared them to jails : link to this video