This repository contains the template to the Java TCP programming practical content.
First you need to pull the image from the GitHub Container Registry.
docker pull ghcr.io/yoy017/guess-the-number:latest
Then create a network.
# Create a Docker network
docker network create heig-vd-dai
# List of Docker networks
docker network list
# Delete a Docker network
docker network rm <name of the Docker network>
You will be able to run the server side of the application with this command
docker run --rm -it --network <name of your network> --name <name of the server> guess-the-number server
Then you can start in a new terminal a new client session with the command
docker run --rm -it --network <name of your network> --name <name of the server> guess-the-number client --host the-server
Enjoy !