2

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.

6

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
  • do you have any suggestion to how to create Magento 2 docker Image from scratch ? @Rafael – Keyur Shah Jan 31 '17 at 16:10
  • @KeyurShah This image I created to development (mainly in Linux), the better way is using OPCache + MariaDB + PHP 7. To Mac and Windows can use the DevBox Official Docker image of Magento. – Rafael Corrêa Gomes Jan 31 '17 at 16:17
  • Thanks for the suggestion , but could you please provide me any link or tutorial to create docker Image . I am sorry for this question , I am beginner in docker so :) @RafaelCorrêaGomes – Keyur Shah Jan 31 '17 at 19:32
  • @KeyurShah This link will to help you docs.docker.com/engine/getstarted/step_four – Rafael Corrêa Gomes Jan 31 '17 at 20:21
  • 1
    Hi @RafaelCorrêaGomes could you help in this docker image for magento related question magento.stackexchange.com/questions/268318/… – Ajwad Taqvi Apr 2 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.