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
9 months agoLennie
9 months agoLeanora
9 months agoDanica
10 months agoLeonor
10 months agoMarylou
10 months agoChaya
10 months agoJani
10 months agoEvangelina
11 months agoCrista
11 months agoBrice
11 months agoThaddeus
11 months agoKristel
11 months agoRima
11 months agoEmerson
11 months agoSheldon
11 months agoOzell
11 months agoGianna
11 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