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
497 stars 263 forks source link

CH07 ex todo-list-postgres bind file for windows containers doesn't work #6

Open MiroM73 opened 4 years ago

MiroM73 commented 4 years ago

windows doesn't support mount config for type "bind" where source path is a file windows supports only folders to be "bind-ed"

PS C:\diamol\ch07\exercises\todo-list-postgres> docker-compose up -d todo-list-postgres_todo-db_1 is up-to-date 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": source path must be a directory

ERROR: for todo-web Cannot create container for service todo-web: invalid mount config for type "bind": source path must be a directory ERROR: Encountered errors while bringing up the project.