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
2
Q
What is a Docker image?
A
- blueprint of everything container needs to run
- like a snapshot
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
4
Q
what is docker-compose?
A
- tool that makes creating and managing multi-container apps easier
- includes key info. (environment variables, ports, volumes)
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
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
7
Q
What is a container registry?
A
a repository: used to store and access container images
8
Q
How to save a Docker container state?
A
a docker commit