As described in the Docker documentation on Working with Volumes , there is a concept of so-called data-only containers that provide a volume that can be installed in several in other containers, regardless of whether the container really works for data-only.
Basically, that sounds amazing. But there is one thing that I do not understand.
These volumes (which do not explicitly display the folder on the host for mobility reasons, as indicated in the documentation) are created and managed by Docker in some internal folder on the host ( /var/docker/volumes/… ).
Suppose I use such a volume, and then I need to transfer it from one host to another - how do I get the port of the volume? AFAICS has a unique identifier - can I just go and copy the volume and its data container only to the new host? How do I know which files to copy? Or is there some support built into Docker that I haven't found yet?
docker
Golo Roden Feb 06 '14 at 8:20 2014-02-06 08:20
source share