πŸ“Š Docker
Q. Which of the following options is correct regarding Docker layers?
  • (A) Each instruction in a Dockerfile creates a new layer in the Docker image
  • (B) Docker images cannot have layers
  • (C) Docker layers are temporary and discarded after the image is built
  • (D) Docker layers are used to manage the runtime of containers
πŸ’¬ Discuss
βœ… 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.

Explanation by: Gopal Sharma
Each instruction in a Dockerfile (e.g., RUN, COPY, etc.) creates a new layer in the Docker image, which helps in reusability and caching.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
79
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
89%
Success Rate