G

Gopal Sharma • 38.32K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category Docker

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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics