can't find a suitable configuration file in this directory or any docker compose (docker-compose section not getting added in solution) can't find a suitable configuration file in this directory or any docker compose (docker-compose section not getting added in solution) docker docker

can't find a suitable configuration file in this directory or any docker compose (docker-compose section not getting added in solution)


Not really an expert on VS 2017, but you would need to create a docker-compose.yml file inside of the project.

More information can be found here.

version: '3.5'services:  client:    container_name: WebApplication     build:      dockerfile: Dockerfile    volumes:        # Any volumes you would mount goes here    ports:        # Ports that need to be mapped from container to host goes here    environment:        # Any environment variables

Edit: In order for VS 2017 to automatically create docker-compose.yml, you will need to right-click on the Project and select Add > Orchestrator Support (15.8 and greater) or Add > Docker Project Support (below 15.8).