Dockerfile issue

bhupendra.doniwal
bhupendra.doniwal Posts: 53 🧑🏻‍🚀 - Cadet

Hi Team, I am facing an error while I am using docker/sdk up and it fails , Can anyone help me out

Tagged:

Best Answer

  • andreas.fluer
    andreas.fluer Spryker Customer Posts: 5 🧑🏻‍🚀 - Cadet
    Answer ✓

    Hi,

    I am a little late, but you could try to remove all docker containers, images, volumes, etc… and then remove the vendor directory. IMPORTANT: Please keep in mind, that you will lose all persistent data if you do this

    After that bootstrap the environment once more and start the docker. Very likely you do not need to start the docker environment as root (sudo).

    Here is what I would do:

    1. On your Windows user directory remove the .docker dir
    2. Restart the docker desktop and make sure the WSL integration is active
    3. Login to your WSL and cd into your project directory
    4. rm -rf vendor
    5. docker system prune —volumes
    6. docker/sdk boot deploy.dev.yml
    7. docker/sdk up

    As you started the docker containers with sudo it is possible that you need sudo before the second command..

    Maybe this will help.

Answers

  • andreas.fluer
    andreas.fluer Spryker Customer Posts: 5 🧑🏻‍🚀 - Cadet
    Answer ✓

    Hi,

    I am a little late, but you could try to remove all docker containers, images, volumes, etc… and then remove the vendor directory. IMPORTANT: Please keep in mind, that you will lose all persistent data if you do this

    After that bootstrap the environment once more and start the docker. Very likely you do not need to start the docker environment as root (sudo).

    Here is what I would do:

    1. On your Windows user directory remove the .docker dir
    2. Restart the docker desktop and make sure the WSL integration is active
    3. Login to your WSL and cd into your project directory
    4. rm -rf vendor
    5. docker system prune —volumes
    6. docker/sdk boot deploy.dev.yml
    7. docker/sdk up

    As you started the docker containers with sudo it is possible that you need sudo before the second command..

    Maybe this will help.

  • bhupendra.doniwal
    bhupendra.doniwal Posts: 53 🧑🏻‍🚀 - Cadet

    Thank you for your support 😊