写了个容器的小 demo

2018 年 3 月 9 日
 herozem

https://github.com/jiajunhuang/cup

容器的原理原来 so easy,不过 Docker 这么火,估计是做了大量的包装,让容器技术简易上手吧

4361 次点击
所在节点    分享创造
11 条回复
FEDT
2018 年 3 月 9 日
膜拜
archknight
2018 年 3 月 9 日
dalao 真的强
Icezers
2018 年 3 月 9 日
Mark
kofj
2018 年 3 月 9 日
failed to run command: fork/exec /proc/self/exe: invalid argument
Linux 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
herozem
2018 年 3 月 9 日
@kofj 你这个内核好像有点老,`/proc/self/exe` 我不记得在哪个版本引入的来着,换个新点的内核
tangwz
2018 年 3 月 9 日
厉害了。另,还有 shell 实现的 docker: https://github.com/p8952/bocker
kofj
2018 年 3 月 9 日
有 /proc/self/exe,这台机器还有跑 docker
$ ls -al /proc/self/exe
lrwxrwxrwx. 1 root root 0 3 月 9 15:07 /proc/self/exe -> /usr/bin/ls
herozem
2018 年 3 月 9 日
@kofj 可以贴一下你执行命令的历史记录么?另外 uname -a 和 lsb_release -a 也贴一下
herozem
2018 年 3 月 9 日
@tangwz 哇,这个是真厉害
kofj
2018 年 3 月 9 日
uname -a 贴过了
$lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.1.1503 (Core)
Release: 7.1.1503
deadEgg
2018 年 3 月 9 日
cup。。

让我想起了一个古老的项目: http://www2.cs.tum.edu/projects/cup/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://v2ex.ih06.com/t/436408

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX