Magento2
Magento2 copied to clipboard
PhP 7.0
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
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.
unfortunately this is not working by me. Tried several times, but continues to give PhP 7.1
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
Thanks for your answer even more gratitude from me for maintaining this repo!
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?
@algostore it worked for me after I commented out the image: rafaelcgstz/magento2
in docker-compose.yaml
Hope it helps.