# HoKer **Repository Path**: LegendHei/ho-ker ## Basic Information - **Project Name**: HoKer - **Description**: 简易容器的实现。。。。。。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-19 - **Last Updated**: 2024-06-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HocKer This project is a container engine that provides isolation using namespaces and resource limitations using cgroups. ## File Structure - `Makefile`: Used to compile the entire project. - `main.c`: Program entry point responsible for parsing command-line arguments and invoking other modules. - `commands/`: Implement the command logic for container to run. - `container/`: Contain the main logic for the container creating namespaces. - `cgroups/`: Directory containing implementations for cgroup resource limitations, including CPU, memory, etc. - `utils/`: Directory containing some common utility functions. - `bin/HocKer`: Compiled executable program. ## Usage To compile the project, run the following command: ```bash make ``` To run the container engine, use the following command: ```bash ./bin/HocKer run [-ti] [-f] [-m memory_limit] [-c cpu_limit] [-n net_id] command [args...] ``` Replace `[arguments]` with the appropriate command-line arguments for your container engine.