clean-docker / Magento2

Docker Image to Magento 2 local development in Mac, Linux and Windows
https://hub.docker.com/r/rafaelcgstz/magento2/
MIT License
444 stars 251 forks source link

PhP 7.0 #68

Open twisseu opened 6 years ago

twisseu commented 6 years ago

Hi,

Recently you haev upgraded the image to php 7.1 Thanks a lot for that. However, I still have one project Magento 2.1, Which only runs on PhP 7.0 Is there a way to get the old docker image with PhP 7.0 ?

Thanks for your reply.

Jelle

devspelunk commented 6 years ago

I had a similar issue with a Magento2.1 project. What I did was change the first line in the Dockerfile FROM php:7.1-apache to FROM php:7.0-apache and in docker-compose.yml uncomment the build parameter on line 5 so it builds from the Dockerfile in the repository you just edited.

twisseu commented 6 years ago

unfortunately this is not working by me. Tried several times, but continues to give PhP 7.1

rafaelstz commented 6 years ago

I'll fix it to provide options, but to solve that today you can do as @devspelunk said, but first, you need to recreate your container, before the changes you must run ./kill then do the changes suggested in the files docker-composer.yml and Dockerfile, so run:

git reset --hard && ./init MYPROJECTNAME
twisseu commented 6 years ago

Thanks for your answer even more gratitude from me for maintaining this repo!

algostore commented 5 years ago

hi,

I've the same issue, but I've about 7 different magento2 with your Docker containers. After I've created new project my image was updated for all 7 projects, even in Dockerfile it's still said apache-7.0, but when the container is started and I've logged in php -v shows 7.1.20. I've followed all steps, with ./kill, then adjusting both files, but after git reset --hard and init projectname, I see both files are changed back to Apache-7.1 and # build.

It looks like steps from above didn't work for me or I did something wrong. Could you suggest a solution or correctly if I did something wrong, pls?

federivo commented 5 years ago

@algostore it worked for me after I commented out the image: rafaelcgstz/magento2 in docker-compose.yaml

Hope it helps.