0% found this document useful (0 votes)
0 views9 pages

Lecture Notes 1.2.1 (Installation of Docker, Docker Hub, Difference Between Docker Image and Container)

The document outlines the installation steps for Docker on both Ubuntu and Windows, detailing commands and procedures for each operating system. It also explains the differences between Docker images and containers, emphasizing their distinct roles and lifecycles. Additionally, it provides resources including video links, textbooks, and reference materials for further learning about Docker and containerization.

Uploaded by

245040002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views9 pages

Lecture Notes 1.2.1 (Installation of Docker, Docker Hub, Difference Between Docker Image and Container)

The document outlines the installation steps for Docker on both Ubuntu and Windows, detailing commands and procedures for each operating system. It also explains the differences between Docker images and containers, emphasizing their distinct roles and lifecycles. Additionally, it provides resources including video links, textbooks, and reference materials for further learning about Docker and containerization.

Uploaded by

245040002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

UNIVERSITY INSTITUTE OF COMPUTING

Master of Computer Application


Cloud Computing & DevOps
Subject Name: Containerization with docker
23CAH-732

DISCOVER . LEARN . EMPOWER


1
Course Outcome
CO2: Understand installation steps of Docker on
Windows and Linux environments

2
Installation Of Docker

On Ubuntu:

1. Update the apt package index and install packages to allow apt to use a repository over HTTPS:
sudo apt-get update && sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release

2. Add Docker’s official GPG key:


curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-
keyring.gpg

3. Set up the stable repository:


echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg]
https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

4. Install Docker Engine:


sudo apt install docker-ce docker-ce-cli containerd.io

5. Verify Docker Installation:


sudo docker run hello-world
Installation Of Docker

On Windows:

1. Download Docker Desktop:


Visit the Docker Desktop for Windows page and download the installer.

2. Install Docker Desktop:


Run the installer and follow the on-screen instructions.

3. Start Docker Desktop:


After installation, Docker Desktop will start automatically.

4. Verify Installation:
Open Command Prompt or PowerShell and run:
docker –-version
Docker Hub

Docker Hub is a cloud-based repository where Docker users and partners create, test, store, and
distribute container images. It provides:

· Image Storage: Centralized place for public and private images, ensuring easy access and
sharing.

· Automated Builds: Automatically build images from GitHub or Bitbucket repositories,


ensuring up-to-date and functional images.

· Webhooks: Trigger actions after a successful push to the repository, automating workflows.

· Official Images: Curated images from Docker, including operating systems, databases, and
application services, ensuring security and best practices.

· Community and Verified Publisher Images: Community-contributed and verified images


from vendors, enhancing the availability of diverse application environments.
Difference Between Docker Image and Container

Aspect Docker Image Docker Container

A lightweight, standalone, and


executable package that includes
Definition A runnable instance of an image.
everything needed to run a piece
of software.

State Immutable and static. Mutable and dynamic.

Built once and used to create Created, started, stopped, deleted,


Lifecycle
containers. and restarted.

Stored in Docker registry (e.g., Uses the underlying storage drivers


Storage
Docker Hub). on the host system.

Running instances that perform the


Usage Blueprint for creating containers.
actual work.
Difference Between Docker Image and Container

Why Understand the Difference?

Understanding the difference between images and containers is crucial for:

· Image Creation: Knowing that images are immutable templates helps in creating consistent and
reproducible environments.

· Container Management: Containers are running instances of images, so managing their


lifecycle (start, stop, restart) is essential for running applications.
Resources

Video Links:
https://youtu.be/Gjnup-PuquQ
https://youtu.be/wi-MGFhrad0
https://youtu.be/a1M_thDTqmU

Textbooks:
1. Matthias, Karl, and Sean P. Kane. Docker: Up and Running. 2nd ed., O'Reilly Media, 2018.
2. Bullington-McGuire, Richard, Andrew K. Dennis, and Michael Schwartz. Docker for Developers: Develop and Run Your
Application with Docker Containers. 1st ed., Apress, 2019.

Reference Books:
3. Turnbull, James. The Docker Book: Containerization is the New Virtualization. 1st ed., James Turnbull, 2014.
4. Freeman, Emily. DevOps for Dummies. 1st ed., For Dummies (Wiley), 2019.

Web Links:
• Docker Documentation
• Docker Tutorial

8
THANK YOU

You might also like