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
9 months ago
Wait, is E even a real command? Sounds off.
LI
Lizbeth
9 months ago
Definitely C! It’s the standard method.
YA
Yasuko
10 months ago
I think B is right, but I'm not sure.
MA
Maile
10 months ago
Option C is the correct way to share the volume.
TH
Thaddeus
10 months ago
I agree with C, it’s straightforward!
GA
Gayla
11 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.
FE
Fernanda
11 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.
EU
Eun
11 months ago
I'm not entirely sure, but I remember something about using `-v` to specify volumes. Could it be option B?
DO
Dominic
11 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?
AR
Arlean
12 months ago
Ah, I see now. Option C is the way to go - using the --volumes-from flag to share the volume.
TE
Teri
12 months ago
I'm pretty sure the answer is option C. That's the one that sounds right to me.
LU
Luke
12 months 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
9 months ago
B looks good, but C is more specific for sharing volumes.
WI
Willow
9 months ago
I’m not so sure about C. What about B?
GA
Gary
10 months ago
I agree with you, C seems right. It shares the volume properly.
RO
Rodolfo
10 months ago
Yeah, I think C is the best choice too.