Skip to content

Latest commit

 

History

History
50 lines (27 loc) · 1.05 KB

README.md

File metadata and controls

50 lines (27 loc) · 1.05 KB

ddocker

<<自己动手写docker>>

Doc: https://www.yuque.com/playgo/ddocker

call flow

ddocker

cgroup resource control

ddocker

create container with pipe

ddocker

support overlay

ddocker

run command

root@ubuntu1404:~/GoWork/src/github.com/devhg/ddocker# go build .

root@ubuntu1404:~/GoWork/src/github.com/devhg/ddocker# ./ddocker run -it -mm 100m stress --vm-bytes 200m --vm-keep -m 1

root@ubuntu1404:~/GoWork/src/github.com/devhg/ddocker# ./ddocker run -it -mm 100m -cpushare 512 stress --vm-bytes 200m --vm-keep -m 1

root@ubuntu1404:~/GoWork/src/github.com/devhg/ddocker# ./ddocker run -it ls -l

root@ubuntu1404:~/GoWork/src/github.com/devhg/ddocker# ./ddocker run -it bash

root@debian:~/GoWork/src/github.com/devhg/ddocker# ./ddocker run -it -v /root/volume:/container sh
sh

Preview

create a busybox container

遇到的问题总结

Q&A