I bet the folks who wrote this question are just waiting for someone to say 'apt-get install fortune-cookies' as the answer. That would be a real knee-slapper!
Haha, that would be funny! But it looks like the answer is B) To ensure the execution order of the commands because Docker might evaluate the statements of a Dockerfile in any order.
E) To execute the apt-get install command only if the apt-get update command was successful because Docker does not check the success of RUN statements.
Hmm, this is a good one. I wonder if the folks who wrote this question have a sense of humor. Maybe they'll throw in a joke about 'apt-get install fortune-cookies' or something.
Haha, I bet the folks who wrote this question were trying to trip us up. But I'm pretty sure the right answer has something to do with efficiency and avoiding unnecessary image layers.
Adolph
1 months agoRobt
12 hours agoKris
11 days agoGlory
16 days agoCeleste
2 months agoRolland
1 months agoBettina
1 months agoNelida
2 months agoFrancoise
2 months agoRoxanne
2 months agoYasuko
2 months agoMarylin
23 days agoTandra
24 days agoRoxane
27 days agoHalina
1 months agoAshlyn
2 months agoHelaine
1 months agoBlair
2 months agoNovella
2 months agoShelia
2 months agoRoxanne
2 months ago