Authors (team):
g++, cmake, boostPython: keyboard, sys, socket
./compile.sh
-
Run docker daemon (
./mydocker <port>
):
./bin/mydocker 8000
-
Start client (
python3 test_socket/client.py <port>
):
python3 test_socket/client.py 8000
-
Communication loop
Specify the container in the dockerfile (.json). For example:{ "bin" : "/bin/sh", "args" : [], "mount_points" : ["/tmp"], "mem_limit": 200, "pids_limit": 20 }
mydocker >>> create dockerfiles/mydockerfile.json mydocker >>> run 0 mydocker >>> listen 0
- create container from docker file:
create <path-to-dockerfile>
- run the container:
run <index>
- start listening to the container. If the
--input
flag is specified - the program requires input; otherwise, it doesn't:listen <index> [--input]
- detach from the container the client is currently listening:
detach
- print the information about the existing containers:
list_containers
- kill the container:
kill_container <index>
- stop the client:
exit