/cnug-docker-presentation

Example code for CNUG February 2019

Primary LanguageC#

Source: https://docs.docker.com/compose/aspnet-mssql-compose/


docker run -v ${PWD}:/app --workdir /app microsoft/dotnet:2.2-sdk-alpine dotnet new mvc --auth Indidivual

docker build -t testdotnet:9.0 .

d run -it --rm -p 8000:80 testdotnet:7.0 bash

? manual way using docker cli instead of docker-compose ?

dotnet run --urls "http://*:80"

dc up -d

dc ps

d run -it --rm testdotnet:9.0 bash


dc -f docker-compose.dev.yml up -d

dc -f docker-compose.dev.yml ps

dc -f docker-compose.dev.yml logs web

# if inheriting
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d