{"id":13420379,"url":"https://github.com/xemul/libct","last_synced_at":"2025-07-24T07:39:55.212Z","repository":{"id":15627570,"uuid":"18364357","full_name":"xemul/libct","owner":"xemul","description":"Linux containers control plane","archived":false,"fork":false,"pushed_at":"2017-10-06T11:44:13.000Z","size":652,"stargazers_count":104,"open_issues_count":8,"forks_count":25,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-16T05:38:26.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xemul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-02T11:37:49.000Z","updated_at":"2025-04-07T20:11:02.000Z","dependencies_parsed_at":"2022-08-25T08:40:40.524Z","dependency_job_id":null,"html_url":"https://github.com/xemul/libct","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xemul/libct","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xemul%2Flibct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xemul%2Flibct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xemul%2Flibct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xemul%2Flibct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xemul","download_url":"https://codeload.github.com/xemul/libct/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xemul%2Flibct/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266808556,"owners_count":23987450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T22:01:32.424Z","updated_at":"2025-07-24T07:39:55.176Z","avatar_url":"https://github.com/xemul.png","language":"C","funding_links":[],"categories":["TODO scan for Android support in followings","Containers"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/xemul/libct.svg)](https://travis-ci.org/xemul/libct)\n\nLIBCT\n=====\n\nLibct is a containers management library which provides convenient API for\nfrontend programs to rule a container during its whole lifetime.\n\nThe library operates on two entities:\n\n* session -- everyone willing to work with container must first open a\nsession. Currently there is only one type of session -- local, when all\ncontainers are created as child tasks of the caller using namespaces,\ncgroups etc.;\n\n* container -- a container. By default container is \"empty\", when started\nit is merely a fork()-ed process. Container can be equipped with various\nthings, e.g.\n\n  - Namespaces. Libct accepts clone mask with which container is started\n\n  - Controllers. One may configure all existing CGroup controllers inside\n    which container will be started.\n\n  - Root on a filesystem. This is a directory into which container will\n    be chroot()-ed (or pivot_root()-ed if mount namespace is used).\n\n  - Private area. This is where the files for container are. Currently\n    only one type is supported -- a directory that will be bind-mounted\n    into root.\n\n  - Network. Caller may assign host NIC of veth pair's end to container\n    on start.\n\n\nFor more details, see [Documentation/libct.txt](Documentation/libct.txt).\nFor usage examples, see [test](test/) directory.\nAll the API calls, types and constants are collected in\n[src/include/uapi/libct.h](src/include/uapi/libct.h).\n\n## Compiling\n\nCurrently, libct depends on libnl which is configured as a git submodule.\nSo, before trying to compile libct for the first time you need to prepare\nlibnl first:\n\n    git submodule update --init --recursive\n    (cd .shipped/libnl/ \u0026\u0026 ./autogen.sh \u0026\u0026 ./configure \u0026\u0026 make)\n\nOnce it is done, please compile as usual, i.e.\n\n    make\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxemul%2Flibct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxemul%2Flibct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxemul%2Flibct/lists"}