GordonLesti / docker-magento

A simple docker image with Magento
MIT License
4 stars 1 forks source link

how to use host for files editing? #1

Open sivajik34 opened 7 years ago

sivajik34 commented 7 years ago

I'm using windows as a host.I want to use IDE in windows. when i run following command ,its deleting all files in /opt/magento directory in ubuntu machine. docker run -d -v \c\Users\Admin\docker-magento\magento:/opt/magento -p 80:80 --name mtfcont 8196e89a13f0. Can you help me on this?

GordonLesti commented 7 years ago

The directory /opt/magento is the installation directory of Magento in the Debian container. I guess your volume mount to /opt/magento is deleting Magento.

sivajik34 commented 7 years ago

yes i understood.Is there any way to edit magento source code from host machine?

GordonLesti commented 7 years ago

no, unfortunately not. Maybe I will change that in future.