Firstly, I am using .NET 4.6.1. A docker with VS 2017 does not work with anything other than .NET Core?
I used the new function Add > Docker Supportin the context menu and created a bunch of files. Here is my Dockerfile (did not touch it since it was automatically created):
FROM microsoft/windowsservercore
ARG source
WORKDIR /app
COPY ${source:-obj/Docker/publish} .
ENTRYPOINT ["C:\app\nameofmyapp.exe"]
When I create, I get the following error:
The CleanWorkspace task completed unexpectedly. Microsoft.DotNet.Docker.CommandLineClientException: Compose file '... \ docker-compose.yml' is invalid because: services.pas.parsemicroservice.build.context contains null, which is an invalid type, it must be a string.
Here is my docker-compose.yml file:
version: '2.1'
services:
pas.parsemicroservice:
image: pas.parsemicroservice
build:
context:
dockerfile: Dockerfile
. ( null, ), :
"DockerCleanServiceReferences".
.NET, ? ( n00b, .)