MGT Cloud Log is here!

File Synchronization on Linux

To work with an IDE like PhpStorm or eclipse you need to have the project files on your host system.

With Linux like Ubuntu, it's very easy to mount a local volume into the container.

In the example below, i start a docker container and mount my Magento 2 project from:

/home/stefan/PhpstormProjects/magento2.mgt

to

/home/cloudpanel/htdocs/magento2.mgt

docker run -d --net=bridge --restart=always --privileged -h mgt-dev-70 --name mgt-dev-70 -v /home/stefan/PhpstormProjects/magento2.mgt:/home/cloudpanel/htdocs/magento2.mgt -it -p 80:80 -p 443:443 -p 22:22 -p 3306:3306 -p 3333:3333 mgtcommerce/mgt-development-environment-7.0

For PHP 5.6 use the following command to run the container

docker run -d --net=bridge --restart=always --privileged -h mgt-dev-56 --name mgt-dev-56 -v /home/stefan/PhpstormProjects/magento2.mgt:/home/cloudpanel/htdocs/magento2.mgt -it -p 80:80 -p 443:443 -p 22:22 -p 3306:3306 -p 3333:3333 mgtcommerce/mgt-development-environment-5.6