A

Admin • 802.91K Points
Coach

Q. Which instruction should be used to clean up cache during image build?

  • (A) CMD clean
  • (B) RUN rm -rf /var/cache && apt-get clean
  • (C) CLEAN
  • (D) RESET

Explanation by: Admin
Cleaning up within a single `RUN` layer reduces final image size.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.