You are on page 1of 45

IBM ICE (Innovation Centre for Education)

Welcome to:
Docker fundamentals

9.1
Unit objectives IBM ICE (Innovation Centre for Education)
IBM Power Systems

After completing this unit, you should be able to:

• Understand the concept of Docker

• Gain knowledge on how to use Docker

• Gain an insight on Docker community

• Understand the Docker architecture


Overview IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker fundamentals.


Source: https://miro.medium.com/proxy/1*9hGvYE5jegHm1r_97gH-jQ.png
What is Docker? IBM ICE (Innovation Centre for Education)
IBM Power Systems

• Docker is an open and secure hybrid cloud platform.

• Docker is a free software created by Docker Inc.

• It enables clients to create free and confined environments to dispatch and deploy its
applications.

• With Docker, there are no more reliance or accumulation issues.


What isn’t Docker? IBM ICE (Innovation Centre for Education)
IBM Power Systems

• Docker is not a Linux Container technology (like LXC).

• Docker is not constrained to simply LXC any longer (can hypothetically oversee VMs later).

• Docker is not a configuration manager substitution (like Chef, Puppet, Salt Stack, and so
forth).

• Docker is not a PaaS.

• Docker is not great at connecting crosswise over independent servers or VMs.

• Docker is not great at disconnecting Linux containers from one another (shared kernel).
Server virtualization IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: server virtualization


Source : https://5.imimg.com/data5/GU/WZ/NU/SELLER-10803960/server-virtualization-service-500x500.jpg
Advantages of Docker IBM ICE (Innovation Centre for Education)
IBM Power Systems

• Docker is incredible at structure and sharing disk images with others through the Docker
Index.

• Docker is a manager for foundation (the present ties are for Linux containers, yet future ties
including KVM, Hyper-V, Xen, and so forth.)

• Docker is an extraordinary image circulation model for server formats worked with
configuration * managers (like Chef, Puppet, Salt Stack, and so on).

• Docker utilizes btrfs (a duplicate on-compose filesystem) to monitor filesystem diff's which
can be submitted and teamed up on with different clients (like git).

• Docker has a central repository of disk images (open and private) that enable you to
effectively run diverse working frameworks (Ubuntu, Centos, Fedora, even Gentoo).
Is Docker a virtual machine?
IBM ICE (Innovation Centre for Education)
IBM Power Systems

• It might resemble a virtual machine from the outset however the usefulness is not the
equivalent.

• In contrast to Docker, a virtual machine will incorporate a total working framework. It will work
autonomously and act like a computer.

• Docker will just share the assets of the host machine so as to run its environments.

• Docker is to pack an application with every one of the conditions it needs into a solitary,
standardized unit for the deployment.

• Docker wraps up every last bit of it into a total filesystem that contains everything your Java
application needs to run the virtual machine itself.
How does it help the developers? IBM ICE (Innovation Centre for Education)
IBM Power Systems

• On the off chance that you must do some clean-up, you can simply demolish the Docker
image and it's as if nothing at any point occurred.

• Consider Docker, not as a programming language or a structure, but instead as a device that
aides in taking care of the normal issues.

• Dependency matrix: Applications have direct conditions. Every one of these conditions has
their own conditions, etc.,

• "It works in my machine“: Says your colleague, as you battle to deploy the most recent code
from the source repository.

• Application development: As the application develops, and you update conditions, you need
to manage the dependency tree.

• Integration challenges: As you move the application to various environments, you must know
about other line-of-business applications running on the objective host and resolve those
each one in turn in every environment as a major aspect of each relocation.
Why use Docker as a developer? IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Why use Docker as a developer?


Source: https://cdn-media-1.freecodecamp.org/images/1*PmDFGgS__7juycGwH1rdxA.png
Docker uses containers IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker uses containers


Source https://cdn-media-1.freecodecamp.org/images/1*PmDFGgS__7juycGwH1rdxA.png
Development burdens IBM ICE (Innovation Centre for Education)
IBM Power Systems

• Maintain a safe atmosphere while emphasizing new builds.

• Documentation to allow others to use your code, as you definitely understand.

• Subordinate software installation without conflicting with host versions.

• Consistent environment for testing.

• Accountable data and traceable storage.


Operational burdens IBM ICE (Innovation Centre for Education)
IBM Power Systems

• Proper documentation of the software being monitored.

• Process micro-management and resource quotas.

• Network configuration for application prerequisites.

• Accountable data and traceable storage.


Why organizations embrace Docker
containers IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Why organizations embrace Docker containers


Source: /https://image.slidesharecdn.com/Docker congeneralsession-day1summary-171018224114/95/Docker con-eu-2017-general-
session-day-1-9-638.jpg?cb=1508404225
Container-driven workloads IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Container-driven workloads


Source: https://cdn-media-1.freecodecamp.org/images/1*k8n7Jx9UaLRAxum9HMp8nQ.png
Substitutes for hypervisors IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Substitutes for hypervisors


Source :http://cloudscaling.com/assets/media/2016/hypervisors-vs-containers-diagram.jpeg
Utilizing microservices IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Utilizing microservices


Source: https://rubygarage.s3.amazonaws.com/uploads/article_image/file/585/microservice-app-built-with-Docker -1.jpg
Virtualization and containerization
compared IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Virtualization and containerization compared


Source: https://jaxenter.com/wp-content/uploads/2015/09/Screen-Shot-2015-09-14-at-17.14.43.png
Convergence of containerization and
virtualization IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Convergence of containerization and virtualization


Source: http://www.stratoscale.com/wp-content/uploads/2019/04/imageblog13.png
Containerization innovations IBM ICE (Innovation Centre for Education)
IBM Power Systems

• LXC (Linux containers): This is the origin of a wide range of containers and is a virtualized
operating system environment for running numerous disconnected Linux systems
(containers) on a single Linux machine.

• OpenVZ: This is an OS-level Linux kernel and system dependent virtualization. OpenVZ
enables a physical server to handle different cases of the disconnected operating system,
known as container, virtual private servers (VPSs), or virtual environments (VEs).

• FreeBSD jail: This is an element which updates virtualization at the OS level, enabling
administrators to bundle a FreeBSD-based computer into a few autonomous jail-based
scaled-down apps.

• AIX Workload Partitions (WPARs): These are OS-level virtualization software executions that
provide segregation and resource control in the application environment.

• Solaris containers (including Solaris Zones): Use of the x86 and SPARC OS-level
virtualization technology.
Overview of Docker editions IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Overview of Docker editions


Source: https://docs.Docker .com/install/overview/
Installation of the Docker engine IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Installation of the Docker engine


Source: https://miro.medium.com/max/600/1*TdcgVRjPriz3kqOC7kF1kQ.png
Docker terminology IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker terminology


Source: https://seouniv.com/cloud-broker.html
Docker community IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker community


Source: https://blog.Docker .com/wp-content/uploads/2014/01/Docker .com_community_no_-06.jpg
Docker community edition IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure:Docker community edition


Source: https://www.altaro.com/msp-dojo/wp-content/uploads/2019/05/050919_1530_Docker Commu1.png
Docker enterprise edition IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker enterprise edition


Source: https://vmarena.com/wp-content/uploads/2018/08/DOCK03.png
Build Kit features IBM ICE (Innovation Centre for Education)
IBM Power Systems

• Automatic garbage collection.

• Extendable frontend formats.

• Concurrent dependency resolution.

• Efficient instruction caching.

• Build cache import/export.

• Nested build job invocations.

• Distributable workers.

• Multiple output formats.

• Pluggable architecture.

• Execution without root privileges.


Docker compose IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker compose


Source : https://github.com/Docker /compose/raw/master/logo.png?raw=true
Container IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Container
Source https://github.com/containerd/containerd/raw/master/design/architecture.png
Docker example IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: With an example, let's understand Docker


Source: https://d1jnx9ba8s6j9r.cloudfront.net/blog/wp-content/uploads/2016/10/VM-vs-Docker -What-is-Docker -Container-Edureka-1.png
Size: Let us understand Docker IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker size


Source: https://d1jnx9ba8s6j9r.cloudfront.net/blog/wp-content/uploads/2016/10/virtual-machine-vs-Docker -example-what-is-Docker -container-
edureka-1-768x400.png
Docker startup IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker startup


Source: https://d1jnx9ba8s6j9r.cloudfront.net/blog/wp-content/uploads/2016/10/Comparing-VM-Startup-vs-Container-Startup-What-Is-Docker -
Container-Edureka-768x383.png
Docker and DevOps tools IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker and DevOps tools


Source: https://d1jnx9ba8s6j9r.cloudfront.net/blog/wp-content/uploads/2016/10/Docker -Integrations-What-is-Docker -Container-Edureka-1-
768x276.png
Docker architecture IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker architecture


Source: https://docs.Docker .com/engine/images/architecture.svg
Docker host IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker host


Source: https://docs.Docker .com/engine/images/architecture.svg
Understanding microservices IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure:Understanding microservices
Source: https://docs.Docker .com/engine/images/architecture.svg
Microservices architecture IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Microservices architecture


Source: https://docs.microsoft.com/en-us/dotnet/architecture/microservices/architect-microservice-container-applications/media/scalable-
available-multi-container-microservice-applications/composed-Docker -applications-cluster.png
Docker components overview IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker components overview


Source: https://nickjanetakis.com/assets/blog/cards/Docker -empowers-you-by-letting-you-use-the-best-tools-for-the-job-
359403ea0de2939ab102a81f7b55f08c9072d4737f9b2ca7a780b0416ea4ee3b.jpg
Docker empowers IBM ICE (Innovation Centre for Education)
IBM Power Systems

Figure: Docker empowers


Source: https://nickjanetakis.com/blog/Docker -empowers-you-by-letting-you-use-the-best-tools-for-the-job
Checkpoint (1 of 2) IBM ICE (Innovation Centre for Education)
IBM Power Systems

Multiple choice questions:

1. Docker is a ___________.
a) Docker is a free software created by Docker Inc.
b) Docker is a paid subscription.
c) Docker is a paid tool.
d) Non of the above.

2. Docker is not a ___________.


a) Docker is not a PaaS.
b) Docker is not a free software.
c) Docker is not a container.
d) Non of the above.

3. The following statement is True about Docker .


a) Docker accomplishes quicker development turnaround.
b) Docker does not support Linux.
c) Docker is tedious to Install.
d) Non f the above.
Checkpoint solutions (1 of 2) IBM ICE (Innovation Centre for Education)
IBM Power Systems

Multiple choice questions:

1. Docker is a ______________.
a) Docker is a free software created by Docker Inc.
b) Docker is a Paid subscription.
c) Docker is a paid tool.
d) Non of the above.

2. Docker is not a _____________.


a) Docker is not a PaaS
b) Docker is not a free software.
c) Docker is not a container.
d) Non of the above.

3. The following statement is True about Docker .


a) Docker accomplishes quicker development turnaround.
b) Docker does not support Linux.
c) Docker is tedious to Install.
d) Non of the above.
Checkpoint (2 of 2) IBM ICE (Innovation Centre for Education)
IBM Power Systems

Fill in the blanks:

1. Docker enables clients to create free and confined __________ to dispatch and deploy its
applications.
2. __________ are a technique of providing comparable consistency on which dev and
activities can rely.
3. __________ perform little workloads as capacities that can be reached by means of APIs,
and that produce discrete yields
4. __________ is designed for the safety and enterprise grade SLA, which takes account of
container runtime business development.

True or False:

1. A hybrid cloud is an embedded cloud service that uses private as well as public clouds.
True/False
2. Private is less of capital expense than public cloud. True/False
3. Big data is segregated using MapReduce's programming approach. True/False
Checkpoint solutions (2 of 2) IBM ICE (Innovation Centre for Education)
IBM Power Systems

Fill in the blanks:

1. Docker enables clients to create free and confined environments to dispatch and deploy its
applications.
2. containers are a technique of providing comparable consistency on which dev and
activities can rely.
3. Microservices perform little workloads as capacities that can be reached by means of APIs,
and that produce discrete yields
4. Docker engine-enterprise is designed for the safety and enterprise grade SLA, which
takes account of container runtime business development.

True or False:

1. A hybrid cloud is an embedded cloud service that uses private as well as public clouds. True
2. Private is less of capital expense than public cloud. False
3. Big data is segregated using MapReduce's programming approach. True
Question bank IBM ICE (Innovation Centre for Education)
IBM Power Systems

Two mark questions:

1. Define Docker container.


2. Define Docker compose.
3. List parameters of virtual machine.
4. Define Docker image.

Four mark questions:

1. Describe Docker component overview.


2. Write the advantages of Docker .
3. Difference between virtualization and containerization.
4. Describe build kit features .

Eight mark questions:

1. Explain briefly Docker architecture.


2. Why doctors as a developers? Explain with example.
Unit summary IBM ICE (Innovation Centre for Education)
IBM Power Systems

Having completed this unit, you should be able to:

• Learn the concept of Docker

• Understand how to use Docker

• Gain an insight on Docker community

• Gain knowledge on Docker architecture

You might also like