Can I install a volume from a container to another container on a different path? For instance.
contA expands the scope of /source- installing it in another
docker run --volumes-from contA -v /source/somedir:/etc/otherdir container docker run --volumes-from contA -v /source/somedir:/etc/otherdir
I am trying to use this with docker-compose and jwilder/nginx-proxy :
Docker-compose.yml
myapp: build: . command: ./run.sh volumes: - /source nginx: image: jwilder/nginx-proxy volumes_from: - myapp volumes: - /source/vhost.d:/etc/nginx/vhost.d:ro - /var/run/docker.sock:/tmp/docker.sock links: - myapp:myapp
If I try so hard, I don't see the files in /etc/nginx/vhost.d :
$ docker-compose run nginx bash root@f200c1c476c7 :/app
source share