Ask HN: Good resources on learning how docker works under the hood?
I'm using docker since a week now and I'm fascinated by it. Wanted to learn how it works under the hood.
(
15 comments
| 54 points
| on HN
)
I’m trying to find a really good blog from years ago but having trouble. This looks good though: https://ericchiang.github.io/post/containers-from-scratch/
Jessica Frazelle's (docker core maintainer) talk on how to build containers in pure bash and C: http://containersummit.io/events/nyc-2016/videos/building-co...
There's also this one, which is similar: https://www.youtube.com/watch?v=HPuvDm8IC-4&t=1103s
https://lwn.net/Articles/531114/
http://www.se-radio.net/2015/01/episode-217-james-turnbull-o...
And then for a more technical and practical view I would recommend this course:
http://shop.oreilly.com/product/0636920051350.do
https://sysadmincasts.com/episodes/31-introduction-to-docker
https://sysadmincasts.com/episodes/24-introduction-to-contai...
https://sysadmincasts.com/episodes/14-introduction-to-linux-...
https://www.youtube.com/watch?v=sK5i-N34im8
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.
You'll see it is mostly gymnastics with cgroups, btrfs, pivot_root, and some networking commands.
Docker is neat, but it's just using functionality that's already there.
https://jvns.ca/blog/2016/10/10/what-even-is-a-container/
https://www.youtube.com/watch?v=EnJ7qX9fkcU