Docker for Azure CE VM volume mounting not working

Copper Contributor

Hi,

 

I've deployed the "Docker for Azure CE VM" and then uploaded via SSH into "/home/docker" my docker-compose.yaml file to put up a project. After exposing the correct ports in the Azure portal for the VM and setting up a DNS name, I can access my project on the web. 

 

In this compose file, I have 3 volume mounting parameters: 

volumes:
- /home/docker/projects:/home
- /home/docker/tmp:/tmp
- /home/docker/var:/home/theproj/var
 
The volume paths inside the container are correct and there is files inside each of them, but none of them are visible from the host VM: the 3 folders I created on the host (projects, tmp and var) are empty when they should show the files inside the containers.
 
What am I not doing right ?
 
Thanks
1 Reply

I have the same problem.

Did you solve it?