Notes taken by Horeb S.
Table of contents
Introduction and requirements
- ๐ Link to the intro video
- What Docker is ? According to Wikipedia, Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers
- Why should we care about docker ?
- Reproductibility : We can use many technologies just by having they image in docker, making it easy to share and run applications consistently across different environments and machines. Containers are isolated from each other and bundle their own software, libraries, and configuration files ;
- Local experiments : Set things for local experiments
- Integration tests that are easy to implement with Docker (CI/CD)
- Running pipelines in the cloud
- Using Spark, Severless as AWS Lambda, Google functions, etc.
Setting-up Docker
On Windows, itโs recommended to use Git Bash (MinGW) or Windows Subsystem for Linux (WSL) to run Docker code. On Linux, we can use native terminal.
Install and Run docker
First of all, we need to install Docker if it was not done.
๐ Link to the installation page of Docker
Once itโs installed, we need to see if itโs working correctly by running in the terminal docker run hello-world
This should output something like below ๐, meaning that Docker works.
<aside>
โ ๏ธ
Remember to add sudo
if you encounter permission denied errors.
</aside>
We can run another command, docker run -it ubuntu bash
, where it
means interactive mode. ubuntu
is the container we are running, bash
is the command we are running.