Python 3.7 implementation of an available, causally consistent, sharded, distributed key value store
docker network create --subnet=10.10.0.0/16 <SUBNET_NAME>
docker build -t <ASGN3_IMG> <PATH_TO_ASSIGNMENT>
docker run --rm -p <EXPOSED_PORT>:8085 --net=<SUBNET_NAME> --ip=<IP_ADDRESS> --name=<REPLICA_NAME> -e SOCKET_ADDRESS=<SOCKET_ADDRESS> -e VIEW=<VIEWS> -e SHARD_COUNT=<SHARD_COUNT> <ASGN3_IMG>
If you would like to quickly stop all running containers:
docker stop $(docker ps -a -q)
If you would need to forcibly stop all containers:
docker kill $$(docker ps -q)
If you would like to quickly remove all containers (Note: this will remove ALL containers used and not used):
docker container rm $(docker container ls -aq)