Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

composer/composer:php7 php eversion #128

Open
vasiliyb opened this issue Aug 20, 2017 · 5 comments
Open

composer/composer:php7 php eversion #128

vasiliyb opened this issue Aug 20, 2017 · 5 comments

Comments

@vasiliyb
Copy link

vasiliyb commented Aug 20, 2017

Folks, trying to run a throw-away container with php7.1

docker run --rm -v $(pwd):/app composer/composer:php7 install

However, I see errors thrown such as:

Problem 1
    - Installation request for doctrine/annotations v1.5.0 -> satisfiable by doctrine/annotations[v1.5.0].
    - doctrine/annotations v1.5.0 requires php ^7.1 -> your PHP version (7.0.7) does not satisfy that requirement.
  Problem 2
    - Installation request for doctrine/cache v1.7.0 -> satisfiable by doctrine/cache[v1.7.0].
    - doctrine/cache v1.7.0 requires php ~7.1 -> your PHP version (7.0.7) does not satisfy that requirement.

I'm not able to find the proper tag, how do i get php 7.1? Thanks!

Super quick solution: docker run --rm -v $(pwd):/app prooph/composer:7.1 install .

@samjarrett
Copy link

You can use the official composer Docker Container to use PHP 7.1 (and the latest composer version, too)!

@Rishats
Copy link

Rishats commented Feb 14, 2018

It seems that the support for PHP 71 has been added, but the problem still exists :( Ty samjarrett for your solution ^)

@ifedor
Copy link

ifedor commented Feb 15, 2018

Have same issue.
# docker run --rm -v $(pwd):/app composer/composer:latest install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for symfony/cache v3.4.2 -> satisfiable by symfony/cache[v3.4.2].
- symfony/cache v3.4.2 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.0.7) does not satisfy that requirement.

@ifedor
Copy link

ifedor commented Feb 15, 2018

@samjarrett thx
@vasiliyb thats was helped to me:
docker run --rm --interactive --tty --volume $PWD:/app composer install

@ChristophSchmidl
Copy link

@ifedor Thanks, that works for me with Laravel 5.6.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants