materialofmouse / mycontainer Goto Github PK
View Code? Open in Web Editor NEWコンテナ自作したやつ
コンテナ自作したやつ
すべてのcapabilityを持った状態だから、必要最低限のcapabilityを見つける。
意外と必要なの多いのかな。よくわかんない
引数:文字列
返り値:失敗時-1 成功時0
手打ちでやってるから入力された文字列からいい感じにしてくれるようにする
構造体名 : overlay_t
メンバ
char *upperdir
char *lowerdir
char *workdir
char *targetdir(mountのほうで使うけど、overlay_tに入れちゃって良さそう。)
を導入して、init_overlayの引数にする
sudo mount -t tmpfs cgroup /sys/fs/cgroup
で問題ないかな?
引数:割合
返り値:失敗時-1 成功時0
全体のCPU時間をとってきて勝手に割合を計算したら設定してくれるようにする。
の4つを最低限実装
なお、OCI Imageの実装はまだ行わない
#12 の続き。
とりあえずコマンドで実装することになった。
コマンドの引数的な感じで扱えるようにする。
各種引数の名前については後で考える。
処理が複雑になってきたから関数で分ける
できればファイルで分けていきたい。
その他追記があればコメントで書く
今まで見ぬふりをしていたのでちゃんと向き合う
現在、container.c一本でやってるからそろそろ分けておきたい。
理由として、
その他はそこまで大きくないのでmainで処理を行う。
unshareとかはフラグもあるし、どうしようかな
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.