In file '.\docker-compose.yml', service 'version' must be a mapping not a string
This is probably be help to all .NET developers who are creating docker-compose file in Visual Studio 2017.
Creating docker-compose file in Visual Studio 2017 was the issue.
Steps taken to solve :
- I used Notepadd++ and this time created a YAML file as template.
- Create you YML configuration.
- Copy to your project directory.
- Run
docker-compose
up
This helped me resolve the issue.