Q. Which of the following options is correct regarding Docker layers?
β
Correct Answer: (A)
Each instruction in a Dockerfile creates a new layer in the Docker image
Explanation: Each instruction in a Dockerfile (e.g., RUN, COPY, etc.) creates a new layer in the Docker image, which helps in reusability and caching.