QuestionQ14

VerifiedContainer Virtualization

After creating a data container with the following command:

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

How can an additional new container be started so that it shares the /data volume with the datastore container?

Explanation

Docker’s --volumes-from option mounts all volumes defined by the referenced container, including the anonymous volume mounted at /data in datastore.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!