libct

Linux containers control plane

  • 所有者: xemul/libct
  • 平台:
  • 許可證: Apache License 2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Build Status

LIBCT

Libct is a containers management library which provides convenient API for
frontend programs to rule a container during its whole lifetime.

The library operates on two entities:

  • session -- everyone willing to work with container must first open a
    session. Currently there is only one type of session -- local, when all
    containers are created as child tasks of the caller using namespaces,
    cgroups etc.;

  • container -- a container. By default container is "empty", when started
    it is merely a fork()-ed process. Container can be equipped with various
    things, e.g.

    • Namespaces. Libct accepts clone mask with which container is started

    • Controllers. One may configure all existing CGroup controllers inside
      which container will be started.

    • Root on a filesystem. This is a directory into which container will
      be chroot()-ed (or pivot_root()-ed if mount namespace is used).

    • Private area. This is where the files for container are. Currently
      only one type is supported -- a directory that will be bind-mounted
      into root.

    • Network. Caller may assign host NIC of veth pair's end to container
      on start.

For more details, see Documentation/libct.txt.
For usage examples, see test directory.
All the API calls, types and constants are collected in
src/include/uapi/libct.h.

Compiling

Currently, libct depends on libnl which is configured as a git submodule.
So, before trying to compile libct for the first time you need to prepare
libnl first:

git submodule update --init --recursive
(cd .shipped/libnl/ && ./autogen.sh && ./configure && make)

Once it is done, please compile as usual, i.e.

make

主要指標

概覽
名稱與所有者xemul/libct
主編程語言C
編程語言Makefile (語言數: 5)
平台
許可證Apache License 2.0
所有者活动
創建於2014-04-02 11:37:49
推送於2017-10-06 11:44:13
最后一次提交2017-10-06 14:44:12
發布數0
用户参与
星數105
關注者數16
派生數25
提交數572
已啟用問題?
問題數14
打開的問題數8
拉請求數28
打開的拉請求數0
關閉的拉請求數7
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?