-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
questionUsability question, not directly related to an error with the imageUsability question, not directly related to an error with the image
Description
Now this is very strange. Although php -v reports correct php version (7.4.28) when trying to use composer to install dependencies it tells me I have PHP 8.0.16.
Steps to reproduce:
- Run the container
docker run -it php:7.4.28-fpm-alpine3.15 /bin/sh
- Run this script
apk add composer
echo '{
"name": "test/test",
"version": "0.0",
"authors": [],
"require": {
"php": "^7.4.0"
}
}' > composer.json
composer install
- Result:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires php ^7.4.0 but your php version (8.0.16) does not satisfy that requirement.
The problem seems to be with the latest version of alpine and not the php version. I tried for two last versions of both:
php:7.4.28-fpm-alpine3.15 bug
php:7.4.27-fpm-alpine3.15 bug
php:7.4.28-fpm-alpine3.14 ok
php:7.4.27-fpm-alpine3.14 ok
Metadata
Metadata
Assignees
Labels
questionUsability question, not directly related to an error with the imageUsability question, not directly related to an error with the image