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 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
1 months 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
1 months 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
1 months 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
Jose
23 days ago
B) Each container is equipped with its own independent data volume, available at /data/ in the respective container.
upvoted 0 times
...
Elliott
30 days ago
A) The container resulting from the second invocation can only read the content of /data/ and cannot change it.
upvoted 0 times
...
...
Mona
1 months ago
But wouldn't that mean both containers can alter the content?
upvoted 0 times
...
Mabelle
2 months ago
I disagree, I believe the answer is C.
upvoted 0 times
...
Lashaunda
2 months 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
Lisandra
21 days ago
So, the data is not shared between the containers then.
upvoted 0 times
...
Raul
25 days ago
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
...
Tonette
27 days ago
B) Each container is equipped with its own independent data volume, available at /data/ in the respective container.
upvoted 0 times
...
Rose
28 days ago
A) The container resulting from the second invocation can only read the content of /data/ and cannot change it.
upvoted 0 times
...
Ahmed
1 months ago
I agree with B. Each container has its own data volume.
upvoted 0 times
...
Quentin
1 months ago
I believe it's actually B. Each container is equipped with its own independent data volume.
upvoted 0 times
...
Hollis
1 months ago
I think the correct answer is C.
upvoted 0 times
...
...
Mona
2 months ago
I think the answer is B.
upvoted 0 times
...

Save Cancel