sixeyed / diamol

Code samples for the book "Learn Docker in a Month of Lunches"
https://www.manning.com/books/learn-docker-in-a-month-of-lunches
Creative Commons Attribution Share Alike 4.0 International
496 stars 263 forks source link

CH07 ex todo-list-postgres paths need to be windows format for win containers #7

Open MiroM73 opened 4 years ago

MiroM73 commented 4 years ago

Hello, the target paths need to be windows format if the exercise is running as windows containers

PS C:\Docker\diamol\ch07\exercises\todo-list-postgres> docker-compose up -d Pulling todo-db (diamol/postgres:11.5)... 1951f408509b: Already exists 39599c411374: Pull complete e50bb24893dc: Pull complete 38ce27962c99: Pull complete 3004606ec28e: Pull complete 859a9fa1d1f9: Pull complete ec0c4f63bbb8: Pull complete 70fb199f0931: Pull complete b6577977647a: Pull complete 6201ff75fc39: Pull complete 99f19e6497ae: Pull complete Digest: sha256:75b770d6fb153d557aa076f614903f9adba6fc7aa4b83c71cd5dfd82f7114703 Status: Downloaded newer image for diamol/postgres:11.5 Creating todo-list-postgres_todo-db_1 ... done Creating todo-list-postgres_todo-web_1 ... error

ERROR: for todo-list-postgres_todo-web_1 Cannot create container for service todo-web: invalid mount config for type "bind": invalid mount path: '/app/config/secrets.json'

ERROR: for todo-web Cannot create container for service todo-web: invalid mount config for type "bind": invalid mount path: '/app/config/secrets.json' ERROR: Encountered errors while bringing up the project.

PS C:\diamol\ch07\exercises\todo-list-postgres> docker version Client: Docker Engine - Community Version: 19.03.5 API version: 1.40 Go version: go1.12.12 Git commit: 633a0ea Built: Wed Nov 13 07:22:37 2019 OS/Arch: windows/amd64 Experimental: false

Server: Docker Engine - Community Engine: Version: 19.03.5 API version: 1.40 (minimum version 1.24) Go version: go1.12.12 Git commit: 633a0ea Built: Wed Nov 13 07:36:50 2019 OS/Arch: windows/amd64 Experimental: false