Discussion
Assertion (A): Two images built from the same base share storage and transfer costs.
Reason (R): Layers are content addressed and stored once however many images reference them.
Answer: B
Correct answer: Both A and R are true, and R is the correct explanation of A
Both are true and the reason gives the mechanism. Each layer is identified by the hash of its content, so two images referencing the same base layer refer to the same object, which is stored once on the host and in the registry and pulled once. Ordering a Dockerfile so that the rarely changing layers come first is how that saving is deliberately maximised.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development