1.2.1 - Introduction to Docker
Last updated Jan 22, 2025
Last updated
Last updated Jan 22, 2025
Last updated
Youtube Video | ~24 min
In this video, we learn about what Docker is, get a pipeline overview, and learn about Docker container and Docker image. Then we work through an example of how to build an image with Docker.
Example code you want to deploy
My repo for this video can be found here
There is a supplemental video for those working on WSL found here:
"Docker helps developers build, share, run, and verify applications anywhere β without tedious environment configuration or management." -
"Simply put, containers are isolated processes for each of your app's components. Each component - the frontend React app, the Python API engine, and the database - runs in its own isolated environment, completely isolated from everything else on your machine." -
"If youβre new to container images, think of them as a standardized package that contains everything needed to run an application, including its files, configuration, and dependencies. These packages can then be distributed and shared with others." -
"A tag is a custom, human-readable identifier that's typically used to identify different versions or variants of an image. If no tag is specified, latest
is used by default." -
.
Create a new 'Dockerfile' in your code editor. I recommend adding the Docker 'plug in' to your editor.
.
- Dockerfile Instruction options i.e. 'FROM', 'RUN', etc.
Terminal
Terminal
Note we will continue to build on this topic. We still need to talk about running containers, stopping containers, and viewing the front end of our containers.
Cleaning - be sure to open Docker Desktop and delete testing examples of your containers and images to free up space
I recommend working through the Docker site Intro & workshop if you're still confused on what Docker is