Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 305-300 Topic 1 Question 31 Discussion

Actual exam question for LPI's 305-300 exam
Question #: 31
Topic #: 1
[All 305-300 Questions]

What happens when the following command is executed twice in succession?

docker run -tid -v data:/data debian bash

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Chan
4 days ago
E is definitely wrong. If the volume is already associated with a running container, the second command should just attach to that container, not fail.
upvoted 0 times
...
Lasandra
6 days ago
D sounds plausible, but I'm not sure why the original container image data would be available in both containers. Hmm, I'll have to think this through a bit more.
upvoted 0 times
...
Catarina
8 days ago
Haha, what if we just run the command a hundred times and see what happens? The data volume must be super confused by now!
upvoted 0 times
...
Mona
9 days ago
But wouldn't that mean both containers can alter the content?
upvoted 0 times
...
Mabelle
15 days ago
I disagree, I believe the answer is C.
upvoted 0 times
...
Lashaunda
17 days ago
I think the correct answer is C. Both containers share the contents of the data volume, have full permissions to alter its content and mutually see their respective changes.
upvoted 0 times
Ahmed
3 days ago
I agree with B. Each container has its own data volume.
upvoted 0 times
...
Quentin
8 days ago
I believe it's actually B. Each container is equipped with its own independent data volume.
upvoted 0 times
...
Hollis
12 days ago
I think the correct answer is C.
upvoted 0 times
...
...
Mona
18 days ago
I think the answer is B.
upvoted 0 times
...

Save Cancel