Remotely spawning docker containers using REST API
-
sudo apt update
-
sudo apt install -y docker.io
-
sudo apt install -y python3-dev python3-pip
-
pip install -r requirements.txt
-
Edit the
server_config.py
file with username, password, list of open ports, docker image ids, path to dockerfiles, etc. -
Run the server,
python3 docker_spawner.py
(tmux) -
Make a request.
-
To add new Dockerfiles, add them inside project directory, add the paths to
server_config
, assign animage_id
. -
For client IPs, check out
ip_logger.txt
-
Dockerfile
-
Client IP logging
-
Port assignment
-
docker-compose
-
DooD