Docker uses ________ files to define the configuration of a containerized application.
- .yaml
- .json
- .cfg
- .dockerfile
The correct option is ".dockerfile." Docker uses Dockerfiles, which are plain text configuration files with a specific syntax, to define the steps needed to create a container image. These files specify the base image, environment variables, dependencies, and commands to run when the container starts. Dockerfiles are essential for building reproducible and version-controlled containerized applications, making it easier to manage and scale container deployments.
Loading...
Related Quiz
- In a large-scale e-commerce platform, how would you design indexes to optimize search queries on product attributes like name, category, and price?
- ___________ testing is performed without knowledge of the internal workings of the software.
- You're debugging a multi-threaded application and encountering deadlocks. Explain how you would identify and resolve deadlock situations effectively.
- In Agile development, user stories are typically written in the format of "As a ___________, I want to ___________, so that ___________."
- In a project, you accidentally committed sensitive information to the repository. How would you remove this information from the Git history without affecting the current state of the project?