An open API service indexing awesome lists of open source software.

https://github.com/maxonchickdev/docker

Docker
https://github.com/maxonchickdev/docker

bash cmake cpp makefile

Last synced: 18 days ago
JSON representation

Docker

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.