A container named “analytics” that stores results in a volume called “data” was created. docker run -d –name=analytics -v data:/data app1 How are the results accessed in “data” with another container called “app2”?
A. docker run -d –name=reports –volume=data app2
B. docker run -d –name=reports –volumes-from=analytics app2
C. docker run -d –name=reports –volume=app1 app2
D. docker run -d –name=reports –mount=app1 app2
Answer:B
A container named “analytics” that stores results in a volume called “data” was created. docker run -d –name=analytics -v data:/data app1 How are the results accessed in “data” with another container called “app2”?
A. docker run -d –name=reports –volume=data app2 B. docker run -d –name=reports –volumes-from=analytics app2 C. docker run -d –name=reports –volume=app1 app2 D. docker run -d –name=reports –mount=app1 app2