First create your Docker file that describes Environment required in order to run your Application
FROM microsoft/aspnetcore:2.0 #This is ASP.NET CORE RUNTIME (not SDK)
ARG source
WORKDIR /app
#EXPOSE 8888
COPY bin/Debug/netcoreapp2.0/publish .
ENTRYPOINT ["dotnet", "Codmatic.Api.dll"]
docker build -t dtarczynski/simpleapi:latest .
docker image ls
docker run --rm -it -p 8989:80 dtarczynski/simpleapi
docker start 2db
docker ps
docker ps --all
docker logs 6cf52a3b570b
docker stop $(docker ps -a -q)
docker pull image_name
docker rmi $(docker images -q -f dangling=true)
or
docker image prune
You want to save changes made to running container
docker commit container_id hubdoc.azurecr.io/myapp/database:latest
http://files.zeroturnaround.com/pdf/zt_docker_cheat_sheet.pdf
https://docs.microsoft.com/en-us/azure/container-registry/container-registry-get-started-docker-cli