Please convert these into 2 separate docker containers. Also would like a run down on how to do this on my own. I was stuck with what to put in the requirements.txt and dockerfile.txt. Also the folder structure for the actual project. Thank you.
Execute run_server script. Enter will accept default values. Server container will always get 172.100.0.2 IP.
Enter on user prompts will accept default values.
Execute run_client scripts to run clients. Clients will be assigned dhcp ip starting with 172.100.0.3
- Stop all containers
docker network rm tcp_server- On the run_server script change subnet value in:
docker network create --subnet 172.100.0.0/16 tcp_server - Modify
--ipparameter in the docker run line with the new IP (must be on the same subnet as the network) - Run the script