docker network create my_bridge
docker run -d --net my_bridge -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=kafka --env ADVERTISED_PORT=9092 --name kafka spotify/kafka
docker build -t pyspark-local pyspark/
docker run --net my_bridge --name pyspark -p 8888:8888 pyspark-local
Open up http://localhost:8888 (Jupyter Notebook with pyspark)
docker start kafka pyspark