Level 1 : Module 1 - Introduction to Docker and its Components

General Overview:

  • Docker is a package manager on steroids.
  • What is a Container? Refer this

Pre-Requisites:

  • Previous experience with using Pycharm IDE will be benificial.

Part 1: Why Should you use Docker?

Video Tutorial:

Highlights:

  • Intercommunication between docker containers is possible
  • Direct usage of exact databases there is no need of using mock databases.
  • Production Deployment mirroring is allowed.

Part 2: How to find Docker Images

Video Tutorial:

Highlights:

  • Introduction to DockerHub
  • Keep a track of the version of packages you install in your docker container (tags on docker hub)
  • Use of Miniconda3 as the base image is preferred.

Part 3: How to find Docker Images

Video Tutorial:

Highlights:

  • Docker File is the actual definition of the docker container.
  • Single docker file corresponds to a single docker image.
  • Setting up of Base Image (Implementation in Code).
  • Components of Docker File.
  • Various Directives available in a Docker File.

Part 4: Build your Docker Image

Video Tutorial:

Highlights:

  • Hands-on implementation on the terminal.
  • Always pin your miniconda version to avoid issues while development.
  • Always save your environment in a configuration file.
  • Introduction to shell alias.
  • Building an actual docker image.
  • Every portion of docker file is run in its own layer and these layers get cached leading to reduced build time.

Part 5: Run the Docker image

A: An Interactive Shell

Video Tutorial:

Highlights:

  • Activate the interactive shell.
  • Various Shell Commands to be used inside the docker container.
  • Implementation of commands inside the container environment.

B: Run a Command and Exit

Video Tutorial:

Highlights:

  • Implementation of various commands in the docker container.

C: Run with Volumes

Video Tutorial:

Highlights:

  • Accessing file on the host machine inside the docker container.
  • “pwd” refers to the working directory.
  • Cleaning up the interactive shell after execution.
  • “-v” flag is used to mount directories.

D: Setting up the environment Variables

Video Tutorial:

Highlights:

  • Setting up the environment variables inside the bash environment.

E: Run and Expose Ports

Video Tutorial:

Highlights:

  • Introduction to the localhost server.
  • Getting started with Nginx webserver.

Estimated Watch Time: 45 Minutes Expected Time for Completion of Module 1: 1 Hour 15 Minutes. Video Credits: dabbleofdevops

If you have any queries, just reply to this thread. :grinning: :grinning:

@CC-Pathway

4 Likes

@Pavitra_Walia, How can I get notifications for this pathway (I had notifications for all postings for this pathway but I didnt get any notification for this one)

1 Like

@YasaminAbbaszadegan , Please put the notification to watching in the Cloud Computing Pathway Hub. Please refer to the screenshot below for reference.

1 Like

Same, I had manual alerts as well and have just only seen this. Perhaps because it is a newer category, only recently filled with posts. Either way, I wish everyone a happy new year. :slight_smile:

1 Like

Hi @CC-Pathway

I know things will be starting up again soon. I figured I should help get the ball rolling by posting my work/code along for module 1 here. I am still cleaning up my github a bit, so don’t judge too harshly!

The content for the module 2 will be available within next 2 hours. Sorry for the delay. Thanks @Melissa for Sharing your code with everyone

1 Like

Thank you @Pavitra_Walia!

Quick follow up question. Is a self assessment due for this module?

How do we track completion for this module? Is it that we spin up an environment or is it a conceptual understanding of the videos? Thanks.