Docker Flashcards

1
Q

What is a VM

A

Replication of a computer system. It’s an atomic entity with all binaries and libraries required to run applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a VM do

A

Abstracts computing, networking, and storage from physical hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Advantages of VM

A

Greater usage of physical resources.
Faster deployment.
Improved resilience, as it can be replaced
Improved scaling as we can as many VM’s as we want
Isolation of VM’s
Utilizes commodity hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Disadvantages of VM

A

Hypervisor impedes speed

Time consuming to launch many VM’s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why does hypervisor impede speed?

A

Because it receives and translates requests from all guest OS’s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where does t1 hpvs run?

A

System hardware. They are bare-metal embedded

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Where does t2 hypervisor run?

A

Runs on host operating systems. They are softwares

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Type 1 is dependent on host OS

A

False as it runs on system hardware.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Type 2 is dependent on OS

A

True. Therefore, if the OS crashes, the guest OS will crash too, even if the hpvs is secured

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Main task of t1 hpvs

A

Share and manage hardware resources between guest OS -> small in size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Advantage of t2 hpvs

A

Since its dependent on the Base OS, base OS allows better specifications and policies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are containers?

A

They are running instances of an image. Unlike VM, container only package up executable code and application’s dependencies, that can be run on multiple environments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does container image include?

A

Libraries, platform settings and tools.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Static container image becomes active when?

A

At run time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why is container faster

A

Containers depend on the kernel. It does not run a complete OS thus, requires minimal resources and is very lightweight.. Also, hypervisor layer is replaced with a runtime engine, it becomes faster and more efficiently on host OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Disadvantage of container

A

Removes strong isolation between VM. Don’t worry we have linux namespaces. :D

17
Q

Differences between a VM and a container

A

Has guest OS | No guest OS
Large, slow | Small, fast
A full copy of a computer system | only contains executable code and dependencies
Run by hypervisor | Created by kernel features of host OS and layered file system
Fully self-contained | dependent on OS kernel

18
Q

Why are containers de-facto ephemeral services?

A

Because they can be destroyed and created very quickly.