Home > other >  Unable to run docker compose from WSL 2 Ubuntu
Unable to run docker compose from WSL 2 Ubuntu

Time:10-15

I am trying to run docker-compose up -d --build from Ubuntu (Windows WSL 2). I have enabled the WSL integration as per the steps listed enter image description here

CodePudding user response:

Posting this as an answer for easier reading.

As mentioned in the comments, the solution appeared to be removing slashes from volumes as suggested by this similar question and answer:

From this:

    volumes:
      - ./server/:/usr/src/app/

To this:

    volumes:
      - ./server:/usr/src/app

Snippet from user's related question here.

  • Related