News for hackers. Stuff that matters.
Re:Ask HN: Good resources on learning how docker works under... by chatmasta on Friday December 01, 2017 @08:31AM (#15823660)
Start with namespaces and cgroups. Once you realize that docker is basically a management interface over those, everything will click.

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/

Re:Ask HN: Good resources on learning how docker works under... by jenscow on Friday December 01, 2017 @09:07AM (#15823870)
and chroot, too.
Re:Ask HN: Good resources on learning how docker works under... by unmole on Friday December 01, 2017 @09:11AM (#15823884)
Docker uses pivot_root and not chroot, IIRC.
Re:Ask HN: Good resources on learning how docker works under... by hardwaresofton on Friday December 01, 2017 @11:44PM (#15830204)
Super late to this thread but the best video I've ever seen on how docker/containers work is this one:

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

Re:Ask HN: Good resources on learning how docker works under... by rubenbe on Friday December 01, 2017 @07:55AM (#15823495)
I would recommend you to read the LWN series on namespaces. The articles are not very recent, but this low level part of docker (kernel namespaces) has not changed.

https://lwn.net/Articles/531114/

Re:Ask HN: Good resources on learning how docker works under... by pacuna on Friday December 01, 2017 @08:30AM (#15823646)
For a start I would recommend to listen to this podcast:

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

Re:Ask HN: Good resources on learning how docker works under... by rajathagasthya on Friday December 01, 2017 @01:33PM (#15826031)
Re:Ask HN: Good resources on learning how docker works under... by antoncohen on Friday December 01, 2017 @12:55PM (#15825714)
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:

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.

Re:Ask HN: Good resources on learning how docker works under... by tyingq on Saturday December 02, 2017 @09:21AM (#15831922)
Docker in ~100 lines of bash: https://github.com/p8952/bocker

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.

Re:Ask HN: Good resources on learning how docker works under... by vinn124 on Friday December 01, 2017 @02:52PM (#15826772)
if youre a week in, youll find this helpful.

https://jvns.ca/blog/2016/10/10/what-even-is-a-container/

Re:Ask HN: Good resources on learning how docker works under... by kanishkdudeja on Friday December 01, 2017 @01:19PM (#15825902)
This video by Ben Corrie is an excellent expanation for what a container actually is.

https://www.youtube.com/watch?v=EnJ7qX9fkcU

Re:Ask HN: Good resources on learning how docker works under... by atsaloli on Friday December 01, 2017 @09:36AM (#15824024)
Re:Ask HN: Good resources on learning how docker works under... by billconan on Friday December 01, 2017 @09:48PM (#15829817)
Re:Ask HN: Good resources on learning how docker works under... by vcoisne on Friday December 01, 2017 @11:31AM (#15824911)
Re:Ask HN: Good resources on learning how docker works under... by nopit on Friday December 01, 2017 @11:54AM (#15825123)
Not really under the hood.