Is there a way to choose the path of named volumes with the default volume drives in docker? -
is there way choose path of named volumes default volume drives in docker?
i know can bind mount volumes in each service. know can create named volumes outside of services , them share them mounting them in each service. can't find out way data (to shared) on path select instead of docker's /var/lib/docker/volumes/.
anyone tried share volume mount point in 2 different containers of same docker-compose file volume location @ choosing?
you cannot built-in docker volume plugin. need install thirdparty plugin below
https://github.com/cwspear/local-persist
curl -fssl https://raw.githubusercontent.com/cwspear/local-persist/master/scripts/install.sh | sudo bash docker volume create -d local-persist -o mountpoint=/data/images --name=images docker run -d -v images:/path/to/images/on/one/ 1 docker run -d -v images:/path/to/images/on/two/ 2
Comments
Post a Comment