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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -