question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docker installation problem - failed to load symfony/flex (v1.0.80) from cache ...

See original GitHub issue

I just try to install my first distribution with docker ce (Windows) and get this error message.

    54/58:      https://codeload.github.com/doctrine/doctrine2/legacy.zip/87ee409783a4a322b5597ebaae558661404055a7
    55/58:      https://codeload.github.com/symfony/http-foundation/legacy.zip/4f9c7cf962e635b0b26b14500ac046e07dbef7f3
    56/58:      https://codeload.github.com/symfony/validator/legacy.zip/f2523bfd8dc5ff648aca55c0f2748674ca4661bb
    57/58:      https://codeload.github.com/twigphp/Twig/legacy.zip/7b604c89da162034bdf4bb66310f358d313dd16d
    58/58:      https://codeload.github.com/api-platform/core/legacy.zip/5b5b4ef13a70b495dda32863935a0a0f79873da1
    Finished: success: 58, skipped: 0, failure: 0, total: 58
Package operations: 58 installs, 0 updates, 0 removals
  - Installing symfony/flex (v1.0.80): Loading from cache
Plugin installation failed, rolling back
  - Removing symfony/flex (v1.0.80)


  [ErrorException]
  Declaration of Symfony\Flex\ParallelDownloader::getRemoteContents($originUrl, $fileUrl, $context) should be compatible with Composer\Util\RemoteFilesystem::getRemoteContents($originUrl, $fileUrl, $context, ?array &$responseHeaders = NULL)


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...

ERROR: Service 'php' failed to build: The command '/bin/sh -c set -eux;         composer install --prefer-dist --no-dev --no-autoloader --no-scripts --no-progress --no-suggest;        composer clear-cache' returned a non-zero code: 1

does anyone know how to solve the problem? thank you & best regards

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
sseidenthalcommented, Aug 5, 2018

i had the same issue, i did: composer update symfony/flex --no-scripts

4reactions
guido4000commented, Aug 5, 2018

Where should i add composer update symfony/flex --no-scripts in which file of api platform

In the api folder in the Dockerfile before line 72 add composer update symfony/flex --no-scripts; \

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Docker Engine installation
This error may indicate: The Docker daemon isn't running on your system. Start the daemon and try running the command again.
Read more >
Introducing Docker support (Symfony Blog)
Flex is a Composer plugin that makes it easy to add new features to your projects. When you install a new PHP library,...
Read more >
Use Docker to build Docker images - GitLab Docs
You may get an error that says docker: error during connect: Post https://docker:2376/v1.40/containers/create: dial tcp: lookup docker on ...
Read more >
How To Install and Set Up Laravel with Docker Compose on ...
Great Tutorial! All was good right up to composer install but then the error 'In PackageManifest.php line 122: Undefined index: name' was thrown ......
Read more >
Advanced Options and Configuration | K3s
One of Rancher's Docker installation scripts can be used to install Docker: ... If K3s fails to start due to missing cgroups when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found