- Must run Linux OS
- Must have Docker installed
- Must have Docker account
-
Ensure the following files are located in the same file directory:
- client.py - master.py - Dockerfile_client - Dockerfile_master - docker-compose.yml
(Note: Files must be named exactly as seen above.)
-
Make sure the current working directory of the terminal is set to where all the files are located.
cd [folder_name]
-
Login to Docker using the command:
sudo docker login
-
Build the Docker images and run the containers by running the command:
sudo docker-compose up --build
-
Terminate and remove the containers and network with the command:
sudo docker-compose down