docker-compose up Permission denied on Windows -


here docker-compose.yml

version: '2' services:   backend:     tty: true     build:       context: project/backend     environment:       - virtual_host=*/api/*,https://*/api/*       - virtual_host_weight=42 

if try

docker-compose 

on windows @ somepoint get:

[91m/bin/sh: 1: ./mvnw: permission denied [0m[31merror[0m: service 'backend' failed build: command '/bin/sh -c ./mvnw package' returned non-zero code: 126 

i using windows 10 64 bit professional has idea on how fix this?

looks bug docker-compose. when building on windows, regular docker build command set files -rwxr-xr-x, looks docker-compose not doing this. fixed in next release of compose.

https://github.com/docker/compose/issues/3065#issuecomment-191489901

the workaround, suggested dnephin add run chmod +x your/files end of dockerfile.