Introduction To Docker-4
Introduction To Docker-4
What is a container?
Container vs VM
What is Docker?
Docker Environment
Docker Architecture
Q/A
Developer Tester
Developer’s Environment
Issues we faced before Containerization
Tester’s Environment
Issues we faced before Containerization
Developer Tester
- This Code runs fine on my computer - This Code does not run on my system
Issues we faced before Containerization
Developer Tester
Operating Pytest 5.4.3 Pycharm IDE Operating Pytest 5.3.0 Spyder IDE
System System
Containers are software that wrap up all the parts of a code and all its
dependencies into a single deployable unit that can be used on
different systems and servers.
Code Libraries
Container VM
Container
vs
VM
Container vs VM
Let’s set some criteria to compare them
• Operating Systems
• Architecture
• Isolation
• Efficiency
• Portability
• Scalability
• Deployment
Container vs VM
Operating System
Container VM
Architecture
Container VM
Host Container Host VM
OS OS OS
Hardware Hardware
Container vs VM
Isolation
Container VM
Efficiency
Container VM
Portability
Container VM
Scalability
Container VM
Containers are very easy to scale, VMs aren’t very easily scalable
they can be easily added and as they are heavy in nature.
removed based on requirements
due to their light weight.
Container vs VM
Deployment
Container VM
Consistent Development
Mircoservices
Environments
Docker engine is as the name suggests, its technology that allows for
the creation and management of all the Docker Processes. It has three
major parts to it.
Docker Swarm
Docker Networks
Nodes & Services
Docker Objects - Images
Docker Image 1
Docker Image 2
Docker Registry
Docker Image 3
Docker Registry – DockerHub
You have many options for a Docker Registry, you can go with
DockerHub as your main Docker registry as there is already a Docker
command to pull and push images to it. If you don’t want to use
DockerHub there are many alternatives to it.
Docker Objects – Registry
For Now let’s just understand that Docker Compose is just a Service
within Docker that let’s us launch multiple containers at the same time.
Docker Swarm
Docker Swarm
For Now just understand that Docker Swarm is a service within Docker
that allows us to manage multiple containers.
Manager Node
Worker Node
Docker Architecture
Docker Architecture
Containers Images
Docker pull
Docker run
What is a Container?
O
R
Q&A
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited