New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 305-300 Exam - Topic 1 Question 43 Discussion

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

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?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Kenia
2 months ago
Wait, is E even a real command? Sounds off.
upvoted 0 times
...
Lizbeth
2 months ago
Definitely C! It’s the standard method.
upvoted 0 times
...
Yasuko
2 months ago
I think B is right, but I'm not sure.
upvoted 0 times
...
Maile
3 months ago
Option C is the correct way to share the volume.
upvoted 0 times
...
Thaddeus
3 months ago
I agree with C, it’s straightforward!
upvoted 0 times
...
Gayla
3 months 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.
upvoted 0 times
...
Fernanda
4 months 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.
upvoted 0 times
...
Eun
4 months ago
I'm not entirely sure, but I remember something about using `-v` to specify volumes. Could it be option B?
upvoted 0 times
...
Dominic
4 months 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?
upvoted 0 times
...
Arlean
4 months ago
Ah, I see now. Option C is the way to go - using the --volumes-from flag to share the volume.
upvoted 0 times
...
Teri
4 months ago
I'm pretty sure the answer is option C. That's the one that sounds right to me.
upvoted 0 times
...
Luke
5 months ago
Wait, I'm a bit confused. Can we share volumes between containers like that?
upvoted 0 times
...
Juan
5 months ago
Okay, I think I've got this. Let me just double-check the options.
upvoted 0 times
...
Edda
5 months ago
Hmm, this looks like a tricky one. I'll need to think it through carefully.
upvoted 0 times
...
Lindsay
5 months ago
Because the --volumes-from flag is used to share volumes between containers.
upvoted 0 times
...
Lawanda
5 months ago
Why do you think so?
upvoted 0 times
...
Lindsay
5 months ago
I think the answer is C.
upvoted 0 times
...
Carin
5 months ago
I think the correct answer is C. The --volumes-from option allows you to share a volume between containers.
upvoted 0 times
Lucy
2 months ago
B looks good, but C is more specific for sharing volumes.
upvoted 0 times
...
Willow
2 months ago
I’m not so sure about C. What about B?
upvoted 0 times
...
Gary
2 months ago
I agree with you, C seems right. It shares the volume properly.
upvoted 0 times
...
Rodolfo
3 months ago
Yeah, I think C is the best choice too.
upvoted 0 times
...
...

Save Cancel