Module 1 Flashcards
Container
A container is an executable unit of software in which application code is packaged, along with its libraries and dependencies, in common ways so that it can be run anywhere, whether on a desktop, on-premises, or in the cloud.
Benefits of containers
- Lightweight
- Portable and platform independent
- Support modern development and architecture
- Improve utilization
Docker
Docker is an open-source community that develops container technologies. It is a company that provides enterprise software.
Dockerfile
•Text file that contains all the commands a user would call on the command line to create the image. •Blueprint from which an image is built. •Outlines all the steps to be taken to build the desired image; Docker then builds that image.
Image
- Immutable file that contains the source code, libraries, and dependencies that are necessary for an application to run.
- That immutability means that images are read-only; if users change an image, a new image is created.
- In a sense, images are templates or blueprints for a container. Users can also think of images as snapshots of a container. A container is therefore a running image. Since images are read-only, a write layer is placed on top of images to enable the container to execute.
What is a container registry?
A container registry is used for the storage and distribution of named container images. They can be public or private and hosted or self-hosted.
When storing an image in a registry, users___the image to the registry.
push
When retrieving an image from a registry, users___the image
“pull”
The image name usually consists of three parts
hostname/repository:tag
Which is abenefitof containers?
They supply portabilitybetween different platforms and clouds.
What is one of the reasons that containers are considered a better option than virtual machines?
C.Containers are small and do not consume as many resources.
Which of the following defines a read-only file that holds code, libraries, and dependencies required by an application to run?
A container image
Which of the following is true regarding containers?
Containers do not require a guest operating system.
What are the operating system primitives that enable virtualization in the Linux Kernel?
namespacesand cgroups
Physical hardware is traditionally virtualized by which of the following?
Hypervisors