https://github.com/tks98/containert
Rust-based simple container runtime
https://github.com/tks98/containert
cgroups containers linux namespaces rust
Last synced: 5 months ago
JSON representation
Rust-based simple container runtime
- Host: GitHub
- URL: https://github.com/tks98/containert
- Owner: tks98
- Created: 2022-07-10T22:49:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-16T03:15:24.000Z (over 2 years ago)
- Last Synced: 2023-10-16T21:35:38.706Z (over 2 years ago)
- Topics: cgroups, containers, linux, namespaces, rust
- Language: Rust
- Homepage:
- Size: 57.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## containert
containert serves as a simple container runtime tool designed for educational purposes. It executes binary files in secure, isolated settings using Linux cgroups and namespaces.
## Usage
Run the program with the following command:
```bash
containert --binary_path [path/to/binary] --rootfs [path/to/rootfs]
```
- `binary_path`: Path to the binary you want to run in the container.
- `rootfs`: Path to the root filesystem for the container.
Example: (I extracted the rootfs for an ubuntu docker image)
```bash
containert --binary_path /bin/bash --rootfs ubuntu/rootfs
root@ubuntu-linux-22-04-desktop:/# ls
bin boot dev etc home lib lost+found media mnt opt proc root run sbin snap srv swap.img sys tmp usr var
```
## Contributing
Feel free to create issues for bugs and feature requests, or make pull requests to improve the utility.
## License
This project is licensed under the MIT License.