Magento 2 – Docker Image Setup

dockermagento2

I am looking for a docker image that can run my already installed Magento 2 instance with php7.

So I have a working Magento 2 installation (previously created with MAMP) and I would like to be able to create a container that will use those already existing files.

Currently, the available images like mageinferno and alankent create a new Magento 2 application from scratch.

I tried to create my own but I'm running into all sort of permission issues in the var folder.

Best Answer

https://hub.docker.com/r/rafaelcgstz/magento2/

I created some images to Magento, this image to Magento 2 has:

  • PHP 7.0
  • Apache 2.4
  • Composer
  • MariaDB
  • Magerun
  • DevAlias CLI
  • Utils (GIT, VIM, UNZIP, CURL, WGET)

Execute in your terminal, change the MYMAGENTO2 to use the name of your project:

curl -s https://raw.githubusercontent.com/clean-docker/Magento2/master/init | bash -s MYMAGENTO2 clone

If you want to install the Magento 2, use like that:

cd MYMAGENTO2
./shell
rm index.php
install-magento2
Related Topic