Run Container

Step 1: Run the container

For PHP 7.1 use the following command to run the container

docker run -d --net=bridge --restart=always --privileged -h mgt-dev-71 --name mgt-dev-71 -it -p 80:80 -p 443:443 -p 22:22 -p 3306:3306 -p 3333:3333 mgtcommerce/mgt-development-environment-7.1

For PHP 7.0 use the following command to run the container

docker run -d --net=bridge --restart=always --privileged -h mgt-dev-70 --name mgt-dev-70 -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 -it -p 80:80 -p 443:443 -p 22:22 -p 3306:3306 -p 3333:3333 mgtcommerce/mgt-development-environment-5.6

Step 2: Open a browser and launch Control Panel

http://127.0.0.1:3333

Control Panel

Logins

SSH / SFTP Access

To connect with SSH to your container just run the following command from terminal

ssh root@127.0.0.1

Password: root

MySQL

To connect to MySQL from your host system or inside of your container just run the following command:

mysql -h127.0.0.1 -uroot -proot 

The root password for MySQL is also: root