Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 701-100 Topic 11 Question 54 Discussion

Actual exam question for LPI's 701-100 exam
Question #: 54
Topic #: 11
[All 701-100 Questions]

Given the following excerpt of a Dockerfile:

Run apt-get --y update && apt-get install --y fortunes && apt-get clean

Why are the multiple apt-get commands combined in one RUN statement instead of using multiple RUN statements?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Roxanne
2 days ago
But wouldn't combining the commands in one RUN statement reduce the number of images created?
upvoted 0 times
...
Yasuko
6 days ago
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.
upvoted 0 times
...
Ashlyn
7 days ago
Wow, this is a tricky one! I'm not sure if Docker executes all RUN statements in parallel or not. Let me think this through...
upvoted 0 times
...
Shelia
9 days ago
I disagree, I believe the correct answer is C.
upvoted 0 times
...
Roxanne
12 days ago
I think the answer is B.
upvoted 0 times
...

Save Cancel