DOCKER | Step by Step for Beginners | with Sample Project
4.4 (430 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
7,286 students enrolled

DOCKER | Step by Step for Beginners | with Sample Project

Docker from scratch
4.4 (430 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
7,286 students enrolled
Created by Raghav Pal
Last updated 6/2020
English
English [Auto]
Current price: $44.99 Original price: $64.99 Discount: 31% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 5 hours on-demand video
  • 16 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Assignments
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Understand what is DOCKER and How does it work
  • Understand the use of DOCKER
  • Install DOCKER on mac, windows and linux
  • Learn Docker commands and usage with hands-on
Course content
Expand all 22 lectures 04:56:46
+ INTRODUCTION
1 lecture 06:00

Today we will learn: What is Docker ?

Docker is the world’s leading software container platform

Docker makes the process of application deployment very easy and efficient and resolves a lot of issues related to deploying applications

Docker is a tool designed to make it easier to deploy and run applications by using containers

Docker gives you a standard way of packaging your application with all its dependencies in a container

Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package.

Understand Docker with analogy of the Shipping industry

How a real world problem was resolved using containers

Preview 06:00

Test your basic understanding of Docker

1 min Docker Quiz
4 questions
+ How DOCKER works
2 lectures 07:04

Today we will learn: Benefits of using Docker

Build app only once

No worries that the application will not perform the same way it did on testing env

Portability

Version Control

Isolation

Productivity

Docker simplifies
DevOps

Benefits of DOCKER
02:45

Today we will learn: How Docker works ?

1. Understand a general workflow of docker

2. Difference between virtualization and containerization

3. Understand docker client server architecture

4. Understand:
Docker file
Docker images
Docker Containers
Docker Hub / Registry
Docker client
Docker server / daemon
Docker engine

How DOCKER works
04:19
+ How to install DOCKER
3 lectures 31:15

Today we will learn : How to install Docker on Linux ?

Agenda:
Prerequisites
Connect to Linux
Install Docker
Start Docker
Stop Docker
Uninstall Docker

Prerequisite
OS should be 64 bit
Linux kernel ver 3.10 or greater

command to check : uname -r

STEP 1 - Connect to Linux system

STEP 2 - Install DOCKER
sudo yum -y update
sudo yum install -y docker

docker
docker --version

STEP 3 - start DOCKER
sudo service docker start
sudo usermod -a -G docker "user"

docker info

docker run hello-world : to run hello-world image

docker images : to get list of images present locally

docker ps : to get list of running containers

docker ps -a .  : to get list of all containers

STEP 4 - stop DOCKER
sudo service docker stop
uninstall DOCKER
sudo yum remove docker

HELPFUL TIPS
You can visit - https://get.docker.com/
for more installation related help

To install docker from binaries
https://docs.docker.com/engine/installation/binaries/

Installation steps for amazon ec2
http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html

References:

Linux free instance - https://aws.amazon.com/free/

Docker Manuals - https://docs.docker.com/manuals/

https://get.docker.com/

https://docs.docker.com/engine/installation/binaries/

http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html

Preview 08:38

Today we will learn : How to install Docker on Windows Step by Step

We will see:

Prerequisites

Install Docker

Troubleshooting tips

Validate installation

Uninstall Docker

____________________________________________________________
USEFUL INFORMATION

If you install the Docker Toolbox on a Windows machine, the installer automatically installs Oracle Virtualbox to run the Docker virtual machine.
____________________________________________________________
Prerequisites
OS - 64 bit
Windows 7 or higher

____________________________________________________________

STEP 1 : Install Docker

https://docs.docker.com/toolbox/toolbox_install_windows/

https://docs.docker.com/docker-for-windows/install/
____________________________________________________________

STEP 2 : Troubleshooting (if any issue occurs)

Convenient way to enable/disable Hyper-V
https://superuser.com/questions/540055/convenient-way-to-enable-disable-hyper-v-in-windows-8

Installing Docker Toolbox on Windows with Hyper-V Installed
https://jayvilalta.com/blog/2016/04/28/installing-docker-toolbox-on-windows-with-hyper-v-installed/

____________________________________________________________

STEP 3 : validate INSTALLATION
run some docker commands

docker
docker --version
docker run "image name"
____________________________________________________________

STEP 4 : uninstall DOCKER

____________________________________________________________

USEFUL LINKS

https://stackoverflow.com/questions/36885985/cannot-start-docker-after-installation-on-windows

https://docs.docker.com/toolbox/faqs/troubleshoot/

____________________________________________________________

References :
Image of docker architecture
References - https://www.wedidknow.xyz/2017/03/docker-ecosystem-how-to-manage-your.html

____________________________________________________________

How to install DOCKER on WINDOWS
10:53

Today we will learn : How to install Docker on MacOS

Prerequisites
Docker - Mac OS Yosemite 10.10.3 or above
Docker Toolbox -  mac OS 10.8 “Mountain Lion” or newer

STEP 1 
Install DOCKER

STEP 2
validate INSTALLATION
run some docker commands

STEP 3
uninstall DOCKER

References:
https://www.docker.com/
https://www.docker.com/docker-mac
https://store.docker.com/editions/community/docker-ce-desktop-mac
https://www.docker.com/products/docker-toolbox
https://docs.docker.com/toolbox/overview/
https://docs.docker.com/toolbox/toolbox_install_mac/

How to install DOCKER on MAC OS
11:44
+ DOCKER COMMANDS
1 lecture 17:24

Docker Basic Commands | Step by Step for Beginners

Basic

> docker version

> docker -v

> docker infod

> docker --help

> docker login

————————————

Images

> docker images

> docker pull

> docker rmi

————————————

Containers

> docker ps

> docker run

> docker start

> docker stop

————————————

System

> docker stats

> docker system df

> docker system prune

References - 

https://hub.docker.com/

https://docs.docker.com/engine/reference/commandline/ps/

Docker Basic Commands and FAQ
17:24
+ DOCKER IMAGES
1 lecture 12:14

Today we will learn :

  1. What are images
  2. How to pull image
  3. How to run a container using an image
  4. Basic Commands

TIPS & TRICKS

What are Images

Docker Images are templates used to create Docker containers

Container is a running instance of image

Where are Images Stored

Registries (e.g. docker hub)

Can be stored locally or remote

: docker images --help

: docker pull image

: docker images

: docker images -q

: docker images -f “dangling=false”

: docker images -f “dangling=false” -q

: docker run image

: docker rmi image

: docker rmi -f image

: docker inspect

: docker history imageName

References:

https://hub.docker.com/_/ubuntu/

https://docs.docker.com/engine/reference/commandline/images/

Docker can build images automatically by reading the instructions from a Dockerfile.

Containers are running instances of Docker Images

A single image can be used to create multiple containers

_____________________________________________________

Docker Images | Step by Step for Beginners
12:14
+ DOCKER CONTAINERS
1 lecture 11:37

Docker Containers

B E G I N N E R S

Today we will learn :

  1. What are Containers
  2. How to create Containers
  3. How to start / stop Containers
  4. Basic Commands

TIPS & TRICKS

What are Containers:

Containers are running instances of Docker Images

COMMANDS

: docker ps

: docker run ImageName

: docker start ContainerName/ID

: docker stop ContainerName/ID

: docker pause ContainerName/ID

: docker unpause  ContainerName/ID

: docker top ContainerName/ID

: docker stats ContainerName/ID

: docker attach ContainerName/ID

: docker kill ContainerName/ID

: docker rm ContainerName/ID

: docker history ImageName/ID

References:

https://www.google.co.in/search?rlz=1C5CHFA_enIN734IN734&biw=1280&bih=703&tbm=isch&q=docker+containers&chips=q:docker+containers,g_5:architecture+docker&sa=X&ved=0ahUKEwiRhIOgkYXcAhVEqo8KHYjABTcQ4lYIMCgA#imgrc=AfGnqueGte31MM:

https://docs.docker.com/engine/reference/commandline/container/#child-commands

_____________________________________________________

Notes

What are Containers:

Containers are running instances of Docker Images

A container image is a lightweight, stand-alone, executable package of a piece of software that includes everything needed to run it: code, runtime, system tools, system libraries, settings.

Features of Containers:

Are lightweight

Less resources are used

Booting of containers is very fast

Can start, stop, kill, remove containers easily and quickly

Operating System resources can be shared within Docker

Containers run on the same machine sharing the same Operating system Kernel, this makes it faster

You can use command

docker container create

to create container in stopped state

What are Docker Containers | How to create Docker Containers
11:37
+ JENKINS CI on DOCKER
1 lecture 16:40

Jenkins on Docker
Step by Step for Beginners

Today we will learn :

  1. How to start Jenkins on Docker Container
  2. Start and Stop Jenkins Container
  3. How to set Jenkins home on Docker Volume and Host Machine

> docker pull jenkins

> docker run -p 8080:8080 -p 50000:50000 jenkins

> docker run --name MyJenkins -p 8080:8080 -p 50000:50000 -v /Users/raghav/Desktop/Jenkins_Home:/var/jenkins_home jenkins

> docker run --name MyJenkins2 -p 9090:8080 -p 50000:50000 -v /Users/raghav/Desktop/Jenkins_Home:/var/jenkins_home jenkins

> docker volume create myjenkins

> docker volume ls

> docker volume inspect myjenkins

> docker run --name MyJenkins3 -p 9090:8080 -p 50000:50000 -v myjenkins:/var/jenkins_home jenkins

> docker inspect MyJenkins3

References - https://hub.docker.com/_/jenkins/

How to run Jenkins on Docker container
16:40
+ DOCKERFILE
1 lecture 10:09

Dockerfile

B E G I N N E R S

Today we will learn :

  1. What is Dockerfile
  2. How to create Dockerfile
  3. How to build image from Dockerfile
  4. Basic Commands

TIPS & TRICKS

Dockerfile : 

A text file with instructions to build image

Automation of Docker Image Creation

FROM

RUN

CMD

Step 1 : Create a file named Dockerfile

Step 2 : Add instructions in Dockerfile

Step 3 : Build dockerfile to create image

Step 4 : Run image to create container

COMMANDS

: docker build 

: docker build -t ImageName:Tag directoryOfDocekrfile

: docker run image

References:

https://github.com/wsargent/docker-cheat-sheet#dockerfile

https://docs.docker.com/engine/reference/builder/#environment-replacement

https://www.google.co.in/search?q=dockerfile&rlz=1C5CHFA_enIN734IN734&source=lnms&tbm=isch&sa=X&ved=0ahUKEwicqqOe_oTcAhWLbysKHX_6B5sQ_AUICigB&biw=1280&bih=703#imgrc=zY4gTeVpM446JM:

_____________________________________________________

What is Dockerfile | How to create and build Dockerfile
10:09
Requirements
  • You DON'T NEED any specialised knowledge to take this course
  • This is designed for Beginners, so you can start from scratch and go up step by step
  • You will get complete support on question, doubts and discussions
Description

This course is created for complete beginners. 

Understand DOCKER in the easiest way with analogies.

If you want to understand what really docker is and how it works, this course is for you. Very basic step by step videos to guide you from scratch. 

In this session, we will start from very basics of DOCKER

  • What is DOCKER

  • Why you should use DOCKER

  • How DOCKER works

  • Benefits of DOCKER

  • How to install DOCKER

  • Basic Commands

  • Docker Images

  • Docker Containers

  • Dockerfile

  • Docker Compose

  • Docker with Jenkins

  • Docker Swarm and much more...

    Let's Get Started...

Who this course is for:
  • People curious about - What is DOCKER and How does it work
  • Beginners who want to understand DOCKER is very basic step by step manner
  • If you want to understand DOCKER in a way that you will never forget