Skip to content

Instantly share code, notes, and snippets.

@luw2007
Last active August 29, 2015 14:17
Show Gist options
  • Save luw2007/3b175714bf238f399f2e to your computer and use it in GitHub Desktop.
Save luw2007/3b175714bf238f399f2e to your computer and use it in GitHub Desktop.
learn docker The Hard Way, 从老版本开始读docker 源码

learn docker the hard way

从老版本读docker, 深入了解基础实现。
为什么从老版本开始。 因为代码少,基本都是核心内容。使用以下脚本

# 统计测试以外的golang 代码行数和单词数
find . -name "*.go" -exec wc {} \; |grep -v "_test" |sort -u |awk -F" " '{a+=$1;b+=$2}END{print a, b}'

得到v0.1.0版本中golang代码4499 15630v1.0.0中则是101549 376671

##阅读 Docs Status 在线阅读
下载**源代码**, 采用mkdocs生成html版本阅读体验较佳。
也可以在马克飞象markdown阅读md源码。

##源代码 github.com/luw2007/learn-docker-the-hard-way

##注意事项 ###备注 代码中的原有注释沿用'//'一般为英文注释。 为了区别中文解释使用'//#'中文解释。如:

// Running in init mode
//# `SysInit`在`sysinit.go`中。

上面是源代码中的备注, 后面是中文解释

###docker版本 老版采用tagv0.1.0, 对照版采用tagv1.0.0

###版权 luw2007个人所有,转载请保留版权声明。 如果有其他参与者考虑使用开发版权, 如 Creative Commons licenses。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment