Containers and Images Flashcards

1
Q

What is in an image made of?

A

App binaries
App dependencies
Metadata and file system changes about the image data and how to run it

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

How are additions added to an image

A

Blank layer known as ‘scratch’
All changes are another unique layer
Benefits by never storing the same layer more than once

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

What is copy on write?

A

When a change to file on the parent container gets copied and diffs to child image containers.

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

What is a tag?

A

Tags are for an image ID, generally a version number, sometimes there is a name

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

To give your tag to a public hub image

A

docker image tag nginx calvinlang/nginx

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

What is a good reason for building from Debian, Ununtu Fedora or Centos?

A

Includes Package Managers like apt and yum

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

&& in a dockerfile

A

Is a command that fits a single layer

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

How is logging managed in docker?

A

Spits out to STD output

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