Running a docker-compose “Getting Started” example causes “Invalid volume specification” on Windows

前端 未结 1 1320
刺人心
刺人心 2020-12-28 15:20

I am absolutely new to Docker. I followed steps described in Docker Compose\'s \"Getting Started\" tutorial:

  1. Install Docker Toolbox
  2. Start Docker Quick
相关标签:
1条回答
  • 2020-12-28 16:08

    I found the solution. The problem was I didn't set the environment variable COMPOSE_CONVERT_WINDOWS_PATHS. It is described in the CLI variables doc.

    So, if this problem exists, you should create new Windows environment variable called COMPOSE_CONVERT_WINDOWS_PATHS and set it to 1. Or you can create .env file in the path docker-compose.yml is placed with following content:

     COMPOSE_CONVERT_WINDOWS_PATHS=1
    

    It will solve this problem.

    0 讨论(0)
提交回复
热议问题