Containers Flashcards

1
Q

What is a container?

A

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.

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

What are some benefits of containers?

A
  • Software will always run the same, regardless of the environment.
  • Containers isolate software from its surroundings, for example differences between development and staging environments and help reduce conflicts between teams running different software on the same infrastructure.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do containers and virtual machines behave differently?

A

Have similar resource allocation and isolation benefits but containers virtualize OS rather than hardware.

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

Can multiple containers run on the same machine and how?

A

Yes. They share the OS kernel with other containers each running isolated processes in user space.

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

Whats the space benefit when compared to VMs?

A

Containers take up less space than VMs and start almost instantly. Container images are typically tens of MBs in size whereas VMs takes up tens of GBs.

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

How does VMs work basically?

A

They virtualize physical hardware. Hypervisor allows multiple Vms on a single machine. Each VM includes a full copy of an OS, on or more apps, necessary bins etc.

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

What is a hypervisor basically?

A

A hypervisor or virtual machine monitor (VMM) is computer software, firmware, or hardware, that creates and runs virtual machines.

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

Can VMs and containers run together?

A

Yes they can.

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

What is Containerd?

A

It is an industry standart container runtime. Available as a daemon for both for Linux and Windows. It manages the complete container lifecycle of its host system, image transfer and storage, container execution and supervision, low-level storage and network attachments.

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

What is runC?

A

Its the runtime code for Docker. Docker engine is built on runC and Containerd.

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

What are the basic similarities between containers and VMs?

A

Both are designed to provide an isolated environment in which to run an application.
In both the env. is represented as a binary artifact that can be moved between hosts.

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