Containerizing an app Flashcards

1
Q

What is containerizing an app?

A

It is the process of taking an application and configure it to run as a container. It is also called dockerizing

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

What is the initial goal of containers?

A

Its all about apps. Its about making apps simple to build ship and run.

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

What is Dockerfile?

A

Dockerfile is a file laying on the root and tells Docker how to built it into an image

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

What it ‘FROM’ in dockerfile?

A

It is used to specify the base image depending the OS ypu are using

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

What is ‘LABEL’ at dockerfile?

A

It is used to define key value pairs and adding custom metadata to the container

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

What is RUN?

A

RUN is used to add other packages as a new layer on top of base image.

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

What is COPY command at Docker file?

A

The COPY instruction copies in the app files from the build context.

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

Why when building images bigger is considered bad?

A

a) More vulnerabilities

b) Bigger surface attacks

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

What is the builder pattern?

A

The builder pattern requires two docker files.

a) one for development
b) one for production

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

What is multi-stage build?

A

It is the process that you have multiple FROM instructions and each new build stage that comes from can copy artifacts from the previous stages.

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

What is a cache hit?

A

Docker when building images uses to save the intermediated layers in its cache. When it builds a new image and find an older layer on the cache, it happens a cache hit.

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