Firstly install Docker on the mac and make sure the following works:
docker run -d -p 80:80 --name webserver nginx
Then create your dotnet core app and from the code folder run the following command:
docker run -p 8000:80 -v $(pwd):/myapp -e "ASPNETCORE_URLS=http://+:80" -it --rm microsoft/dotnet:1.1-sdk-projectjson
Once the container is running...
cd myapp
dotnet restore
dotnet run