Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

maxonchickdev/docker

Repository files navigation

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 <port>

sudo is important! it is necessary for cgroups to work.
Connect to server:

nc localhost <port>

Next commadns are used after connection to server.
Create container:

mydocker create <config_path>

Delete container:

mydocker delete <container_id>

Stop server:

mydocker shutdow

List of all available containers:

mydocker list

Run container by id:

mydocker run <container_id>

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 <container_id>

Config file example

id = 3
n_pr = 10
max_memory = 10000000
lclfld = <path>,<path>,...
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.

About

Docker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

AltStyle によって変換されたページ (->オリジナル) /