TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

54 点作者 mohitmun超过 7 年前
I'm using docker since a week now and I'm fascinated by it. Wanted to learn how it works under the hood.

12 条评论

chatmasta超过 7 年前
Start with namespaces and cgroups. Once you realize that docker is basically a management interface over those, everything will click.<p>I’m trying to find a really good blog from years ago but having trouble. This looks good though: <a href="https:&#x2F;&#x2F;ericchiang.github.io&#x2F;post&#x2F;containers-from-scratch&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ericchiang.github.io&#x2F;post&#x2F;containers-from-scratch&#x2F;</a>
评论 #15823870 未加载
hardwaresofton超过 7 年前
Super late to this thread but the best video I&#x27;ve ever seen on how docker&#x2F;containers work is this one:<p>Jessica Frazelle&#x27;s (docker core maintainer) talk on how to build containers in pure bash and C: <a href="http:&#x2F;&#x2F;containersummit.io&#x2F;events&#x2F;nyc-2016&#x2F;videos&#x2F;building-containers-in-pure-bash-and-c" rel="nofollow">http:&#x2F;&#x2F;containersummit.io&#x2F;events&#x2F;nyc-2016&#x2F;videos&#x2F;building-co...</a><p>There&#x27;s also this one, which is similar: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=HPuvDm8IC-4&amp;t=1103s" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=HPuvDm8IC-4&amp;t=1103s</a>
rubenbe超过 7 年前
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.<p><a href="https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;531114&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;531114&#x2F;</a>
pacuna超过 7 年前
For a start I would recommend to listen to this podcast:<p><a href="http:&#x2F;&#x2F;www.se-radio.net&#x2F;2015&#x2F;01&#x2F;episode-217-james-turnbull-on-docker&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.se-radio.net&#x2F;2015&#x2F;01&#x2F;episode-217-james-turnbull-o...</a><p>And then for a more technical and practical view I would recommend this course:<p><a href="http:&#x2F;&#x2F;shop.oreilly.com&#x2F;product&#x2F;0636920051350.do" rel="nofollow">http:&#x2F;&#x2F;shop.oreilly.com&#x2F;product&#x2F;0636920051350.do</a>
rajathagasthya超过 7 年前
I watched these SysAdmin Casts when learning Docker. Follow the links provided in the transcript for more in-depth stuff.<p><a href="https:&#x2F;&#x2F;sysadmincasts.com&#x2F;episodes&#x2F;31-introduction-to-docker" rel="nofollow">https:&#x2F;&#x2F;sysadmincasts.com&#x2F;episodes&#x2F;31-introduction-to-docker</a><p><a href="https:&#x2F;&#x2F;sysadmincasts.com&#x2F;episodes&#x2F;24-introduction-to-containers-on-linux-using-lxc" rel="nofollow">https:&#x2F;&#x2F;sysadmincasts.com&#x2F;episodes&#x2F;24-introduction-to-contai...</a><p><a href="https:&#x2F;&#x2F;sysadmincasts.com&#x2F;episodes&#x2F;14-introduction-to-linux-control-groups-cgroups" rel="nofollow">https:&#x2F;&#x2F;sysadmincasts.com&#x2F;episodes&#x2F;14-introduction-to-linux-...</a>
antoncohen超过 7 年前
Jérôme Petazzoni&#x27;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:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=sK5i-N34im8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=sK5i-N34im8</a><p>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.
tyingq超过 7 年前
Docker in ~100 lines of bash: <a href="https:&#x2F;&#x2F;github.com&#x2F;p8952&#x2F;bocker" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;p8952&#x2F;bocker</a><p>You&#x27;ll see it is mostly gymnastics with cgroups, btrfs, pivot_root, and some networking commands.<p>Docker is neat, but it&#x27;s just using functionality that&#x27;s already there.
vinn124超过 7 年前
if youre a week in, youll find this helpful.<p><a href="https:&#x2F;&#x2F;jvns.ca&#x2F;blog&#x2F;2016&#x2F;10&#x2F;10&#x2F;what-even-is-a-container&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jvns.ca&#x2F;blog&#x2F;2016&#x2F;10&#x2F;10&#x2F;what-even-is-a-container&#x2F;</a>
kanishkdudeja超过 7 年前
This video by Ben Corrie is an excellent expanation for what a container actually is.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=EnJ7qX9fkcU" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=EnJ7qX9fkcU</a>
atsaloli超过 7 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;fatherlinux&#x2F;container-internals-lab" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fatherlinux&#x2F;container-internals-lab</a>
billconan超过 7 年前
<a href="https:&#x2F;&#x2F;blog.lizzie.io&#x2F;linux-containers-in-500-loc.html" rel="nofollow">https:&#x2F;&#x2F;blog.lizzie.io&#x2F;linux-containers-in-500-loc.html</a>
vcoisne超过 7 年前
check out <a href="http:&#x2F;&#x2F;training.play-with-docker.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;training.play-with-docker.com&#x2F;</a>
评论 #15825123 未加载