I want to setup docker with PHP 7.1 version

I want to setup docker with PHP 7.1 version

The Docker Desktop for Windows community forum is place where users can meet and discuss Docker Desktop for Windows and related technologies.
If you encounter problems with Docker for Windows, we recommend:

Finally, if your issue has not been addressed elsewhere, running:

  • :whale: :arrow_right: Settings :arrow_right: Diagnose & Feedback :arrow_right: Open Issues.

This forum is not an official product support or issue reporting channel.

Okay, do you also have a question or you just wanted to let us know what you are going to do? :slight_smile:

You can start here: https://hub.docker.com/_/php

Not 7.4 version PHP

I want to setup docker with PHP 7.1 version

I’m Facing this actual Fatal Error : Cannot use ‘Object’ as class name as it is reserved in /var/www/html/app/vendor/yiisoft/yii2/base/Object.php on line 77

In a composer.json file “require”: { “php”: “>=5.4.0” }

R&D for resolve this issue Object, yii\base\Object | API Documentation for Yii 2.0 | Yii PHP Framework should i try these

The response of @rimelek is still correct. It seems you just don’t know how to find a tag for php 7.1.
The “Tags” tab of the repository allows applying a filter. Just set it to “7.1” and pick a tag you feel comfortable with.

WARNING: all the 7.1 images are outdated and have vulnerabilities (including critical and high ones), as the php version itself reached end of life on Dec 1st 2019.

I know how to filter tags but don’t know how to create docker file and image

can you please take remote access of my system

This is a community forum, where questions are asked from the community and answered by the community. We volunteer to help people help themselves. No one can free you from the initial step of learning how to use your tools.

Everything you need to know about how to write a Dockerfile and build an image can be found here: https://docs.docker.com/engine/reference/builder

Let us know if you hit a specific problem or have an unclarity about a specific topic. The more precise you question is, the more likely it is to get answered.

1 Like