Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ninjamar/containd-cpp
containerization tool
https://github.com/ninjamar/containd-cpp
cgroups containerization containers cpp
Last synced: about 2 months ago
JSON representation
containerization tool
- Host: GitHub
- URL: https://github.com/ninjamar/containd-cpp
- Owner: ninjamar
- License: mit
- Created: 2022-12-12T12:28:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-13T03:46:21.000Z (about 2 years ago)
- Last Synced: 2024-10-19T21:57:15.948Z (3 months ago)
- Topics: cgroups, containerization, containers, cpp
- Language: C++
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Containd
Containd is a contanerization utility meant to run a process in a container. Containd relies on the `clone` system call.## Setup
Run `make setup` as root to install the rootfs (alpine linux). Disable cgroups (no root) with the `--no-cgroups` option. Run `make` to build## Usage
Run `sudo ./containd`| Option | Usage |
| ------------------- | ----- |
| `-p` | int for maximum number of processes- default `max`|
| `-m` | int for maximum memory usage - default `max` |
| `-r` | string for rootfs path - default `./rootfs` |
| `-c` | string for command to be run - default `/bin/sh` |
| `-stack` | int for stack size - default `65536` |
| `--use-shell` | option to use `system` instead of `execvp` |
| `--disable-network` | option to disable networking |
| `--no-cgroup` | option to not use `cgroups` (voids `-p` and `-m`) |