ERROR - Docker-compose/docker Windows

前端 未结 3 1335
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 16:58

I wanted to deploy my application on a windows system. I recently (yesterday) installed DockerToolbox-1.12.4 on my windows 10. This gives my a new terminal. Whe

相关标签:
3条回答
  • 2021-01-13 17:56

    This example works for me:

      test_dev:
        image: test/node:7.9
        ports:
          - "3000:3000"
        volumes:
          - //c/Users/user/Sources:/usr/src/app/
        command:
         node /usr/src/app/start.js
    
    0 讨论(0)
  • 2021-01-13 17:56

    I had some issues trying to run docker-compose build on windows 10. Error: 'Failed to execute script docker-compose'

    After trying so many things and finally ran docker quick start terminal which ran Bash shell. I ran cmd command to switch to cmd and tryied the build command. That's it. Worked for me

    0 讨论(0)
  • 2021-01-13 18:01

    I think you have to set COMPOSE_CONVERT_WINDOWS_PATHS=1 in your environment. See:

    • https://github.com/docker/compose/issues/4240
    • https://github.com/docker/compose/issues/4253
    0 讨论(0)
提交回复
热议问题