LPI 701-100 Exam - Topic 11 Question 54 Discussion
Given the following excerpt of a Dockerfile:Run apt-get --y update && apt-get install --y fortunes && apt-get cleanWhy are the multiple apt-get commands combined in one RUN statement instead of using multiple RUN statements?
D) To execute both commands in the same container instance and void Docker to reset the container to the original base image.
A) To prevent the commands from running in parallel because Docker executes all RUN statements in their own container at the same time.
B) To ensure the execution order of the commands because Docker might evaluate the statements of a Dockerfile in any order.
C) To avoid the creation of unnecessary images because Docker creates a new image for each RUN statement.
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.
Carman
7 months agoLennie
8 months agoLeanora
8 months agoDanica
8 months agoLeonor
8 months agoMarylou
9 months agoChaya
9 months agoJani
9 months agoEvangelina
9 months agoCrista
9 months agoBrice
9 months agoThaddeus
9 months agoKristel
9 months agoRima
9 months agoEmerson
9 months agoSheldon
9 months agoOzell
9 months agoGianna
10 months agoAdolph
1 year agoRobt
1 year agoKris
1 year agoGlory
1 year agoCeleste
1 year agoRolland
1 year agoBettina
1 year agoNelida
1 year agoFrancoise
1 year agoRoxanne
1 year agoYasuko
1 year agoMarylin
1 year agoTandra
1 year agoRoxane
1 year agoHalina
1 year agoAshlyn
1 year agoHelaine
1 year agoBlair
1 year agoNovella
1 year agoShelia
1 year agoRoxanne
1 year ago