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
3 months agoRobt
2 months agoKris
2 months agoGlory
2 months agoCeleste
3 months agoRolland
3 months agoBettina
3 months agoNelida
3 months agoFrancoise
4 months agoRoxanne
4 months agoYasuko
4 months agoMarylin
2 months agoTandra
2 months agoRoxane
2 months agoHalina
3 months agoAshlyn
4 months agoHelaine
3 months agoBlair
3 months agoNovella
3 months agoShelia
4 months agoRoxanne
4 months ago