: Docker
Get a Docker account and connect
- Download, install and launch docker on your laptop
Follow instructions at https://www.docker.com/get-started
It is enough to install the CLI tool.
- Create an account on docker hub (if you don’t have one already) at https://hub.docker.com
Docker Hub is a service provided by Docker for finding and sharing container images with your team. Learn more and find images at https://hub.docker.com
- Open a terminal (powershell on windows) and type
docker login
and provide the username and password you use at https://hub.docker.com
Docker desktop (optional)
Pull docker iamges
docker pull svbo/ifeby310
docker image ls
Run containers
A container is a runtime instance of a docker image. A container will always run the same, regardless of the infrastructure. Containers isolate software from its environment and ensure that it works uniformly despite differences for instance between development and staging.
Configure docker-compose.yml
docker-compose.yml
version: "3.7"
services:
big_data_course:
container_name: ifeby310
image: svbo/ifeby310
ports:
- "8192:8192"
- "8888:8888"
- "4040:4040"
restart: always
volumes:
- "PATH_GROSSES_DATA:/opt/polynote/notebooks/"
restart: always
environment:
- PYSPARK_ALLOW_INSECURE_GATEWAY=1
PATH_GROSSES_DATA
denotes the path on your hard drive where you will work during this course. It denotes a local volume that is mapped on container path /opt/polynote/notebooks
Compose the container
docker-compose up
docker container ls