Docker Review Flashcards

1
Q

What is containerization?

A
  • mechanism for packaging an application with dependencies– runs in its own isolated environment
  • ensures app or processes can run reliably regardless of the host environment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Docker image?

A
  • blueprint of everything container needs to run

- like a snapshot

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

What is a Docker Container?

A

Docker Container is a standardized unit that can be created on the fly to deploy a particular application or environment.

  • built from images
  • stateless, scalable, portable
  • secure, lightweight
  • loosely coupled
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is docker-compose?

A
  • tool that makes creating and managing multi-container apps easier
  • includes key info. (environment variables, ports, volumes)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are docker volumes?

A
  • files that exist on the host file system outside of container
  • a way to persist data & share data between containers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the benefit to an image being built in Layers?

A
  • when building an image, it will reuse layers if files have been unchanged
  • reduces build time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a container registry?

A

a repository: used to store and access container images

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

How to save a Docker container state?

A

a docker commit

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