https://github.com/maxonchickdev/docker
Docker
https://github.com/maxonchickdev/docker
bash cmake cpp makefile
Last synced: 18 days ago
JSON representation
Docker
- Host: GitHub
- URL: https://github.com/maxonchickdev/docker
- Owner: maxonchickdev
- License: mit
- Created: 2024-10-09T11:02:05.000Z (over 1 year ago)
- Default Branch: polinom
- Last Pushed: 2024-12-09T15:40:26.000Z (over 1 year ago)
- Last Synced: 2025-09-02T15:03:04.826Z (9 months ago)
- Topics: bash, cmake, cpp, makefile
- Language: CMake
- Homepage:
- Size: 3.86 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Project: mini-docker
Authors (team): Zahar Kohut, Serhii Dmytryshyn, Maxym Kutsenko, Bohdan Ozarko
## Prerequisites
g++, cmake, boost
### Compilation
```
./compile.sh
```
### Usage
Start server:
```
sudo ./bin/mydocker2
```
sudo is important! it is necessary for cgroups to work.
Connect to server:
```
nc localhost
```
Next commadns are used after connection to server.
Create container:
```
mydocker create
```
Delete container:
```
mydocker delete
```
Stop server:
```
mydocker shutdow
```
List of all available containers:
```
mydocker list
```
Run container by id:
```
mydocker run
```
After run, container might be used as well as "mydocker" commands are available.
After run, container must always be stopped.
Stop container by id:
```
mydocker stop
```
### Config file example
```
id = 3
n_pr = 10
max_memory = 10000000
lclfld = ,,...
image = alp_minifs
```
ID and image fields are necessary, other are optional.
Images available for now are "alp_minifs" and "alp_minifs_extended".
It is better to avoid very low memory limits (<1MB) to avoid any unwanted behaviour.