Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello everyone. In recent installations I always get a composer error while booting the docker sdk.

Options
UKTEVG9L4
UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet

Hello everyone.

In recent installations I always get a composer error while booting the docker sdk.

The messag is:

 ERROR [spryker_app_dependencies 5/5] RUN --mount=type=cache,target=/home/spryker/.composer/cache,from=composer_cache,source=/cache     composer install --no-interaction --optimize-autoloader --no-dev   0.

I'm using Centos as an operation system.

Thx

Comments

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    Hello Robert,

    What version of dockers?
    Do you have experimental docker features enabled?

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet
    Options

    Docker Version: 19.03.5

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet
    Options

    Default installation

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options
  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    Please make sure everything setup as described. Thanks

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet
    Options

    Got it already. Same error 😞

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet
    Options

    The docker/sdk worked in previous setup but with the recent checkout not anymore.

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    edited February 2020
    Options

    Ah. So you had it worked.
    At that point I assume docker layers would be corrupted.

    If you are willing, you can try to prune docker. Or even delete its data. Do you need guide for such?

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet
    Options

    Also done. All volumes and images are pruned

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    Sometimes it happens. In some cases even rebooting helps.

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    docker system prune

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    edited February 2020
    Options

    Images and volumes are not layers. Docker still has layers after images are pruned.

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options
  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    This temp change would make error more informative.

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet
    Options

    First I want to reinstall docker

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet
    Options

    Then I'll try your suggestions

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    I suggest sudo rm -rf /var/lib/docker after docker shutdown.

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet
    Options

    Wow now it works

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet
    Options

    Reinstalling docker

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet
    Options

    Or maybe the system prune

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 🧑🏻‍🚀 - Cadet
    Options

    Thanks for the hint

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    Sometimes happens. ) Glad to help.