BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 305-300 Exam - Topic 1 Question 43 Discussion

Posted by Carissa on Aug 02, 2025 at 10:04 PM

After setting up a data container using the following command:

docker create -v /data --name datastore debian /bin/true

how is an additional new container started which shares the /data volume with the datastore container?

Suggested Answer: C

Get Premium 305-300 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
22 comments · newest first
KE
Kenia 11 months ago
Wait, is E even a real command? Sounds off.
LI
Lizbeth 11 months ago
Definitely C! It’s the standard method.
YA
Yasuko 11 months ago
I think B is right, but I'm not sure.
MA
Maile 11 months ago
Option C is the correct way to share the volume.
TH
Thaddeus 12 months ago
I agree with C, it’s straightforward!
GA
Gayla 1 year ago
I feel like I might be mixing things up, but option A doesn't seem right. I don't recall seeing `--share-with` in the Docker documentation.
FE
Fernanda 1 year ago
I practiced a similar question, and I believe the correct command is C. It makes sense to use `--volumes-from` to access the existing volume.
EU
Eun 1 year ago
I'm not entirely sure, but I remember something about using `-v` to specify volumes. Could it be option B?
DO
Dominic 1 year ago
I think we need to use the `--volumes-from` option to share the volume from the datastore container. So maybe it's option C?
AR
Arlean 1 year ago
Ah, I see now. Option C is the way to go - using the --volumes-from flag to share the volume.
TE
Teri 1 year ago
I'm pretty sure the answer is option C. That's the one that sounds right to me.
LU
Luke 1 year ago
Wait, I'm a bit confused. Can we share volumes between containers like that?
JU
Juan 1 year ago
Okay, I think I've got this. Let me just double-check the options.
ED
Edda 1 year ago
Hmm, this looks like a tricky one. I'll need to think it through carefully.
LI
Lindsay 1 year ago
Because the --volumes-from flag is used to share volumes between containers.
LA
Lawanda 1 year ago
Why do you think so?
LI
Lindsay 1 year ago
I think the answer is C.
CA
Carin 1 year ago
I think the correct answer is C. The --volumes-from option allows you to share a volume between containers.
LU
Lucy 10 months ago
↳ replying to Carin
B looks good, but C is more specific for sharing volumes.
WI
Willow 11 months ago
↳ replying to Carin
I’m not so sure about C. What about B?
GA
Gary 11 months ago
↳ replying to Carin
I agree with you, C seems right. It shares the volume properly.
RO
Rodolfo 12 months ago
↳ replying to Carin
Yeah, I think C is the best choice too.
0/2000 characters

Save Cancel