Junior — Middle
What components are included in a Docker image?
sobes.tech AI
Answer from AI
A Docker image consists of several key components:
- Layers: Each layer represents changes to the filesystem, added on top of the previous layer. Layers are immutable and stacked to form the final image.
- Filesystem: The image contains a filesystem that will be accessible to the container when it runs.
- Manifest: Describes the structure of the image, including the list of layers and metadata.
- Configuration: Includes settings such as the entry point (ENTRYPOINT, CMD), environment variables, ports, and other container parameters.
Thus, an image is a set of layers with metadata and configuration, allowing containers to be run with a predefined environment and application.