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.

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

    Hello Robert,

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

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

    Docker Version: 19.03.5

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

    Default installation

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet
  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    Please make sure everything setup as described. Thanks

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

    Got it already. Same error 😞

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

    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

    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

    Also done. All volumes and images are pruned

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    Sometimes it happens. In some cases even rebooting helps.

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    docker system prune

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited February 2020

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

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet
  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    This temp change would make error more informative.

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

    First I want to reinstall docker

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

    Then I'll try your suggestions

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

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

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

    Wow now it works

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

    Reinstalling docker

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

    Or maybe the system prune

  • UKTEVG9L4
    UKTEVG9L4 Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thanks for the hint

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    Sometimes happens. ) Glad to help.