Learn asp.net core 3.1, rest service, async, docker, openshift/minishift
When the application is running, the rest service can be accessed at
https://localhost:5001/api/Employee
#Build application image and run container for the image
docker build -t mywebappexample -f Dockerfile .
docker run -d -p 8080:8080 --name mywebapp mywebappexample
#Commonly use commands
docker container ls -a
docker container rm 896935e93272
docker image rm 75835a67d134 2a4cca5ac898
docker image prune
docker exec mywebapp ipconfig
docker exec -it mywebapp /bin/sh (log into running container)
docker run --entrypoint /bin/sh -it mywebappexample (log into image)
docker images -f dangling=true
docker system prune
#Clean up
docker container stop $(docker container ls -aq)
docker container rm $(docker container ls -aq)
docker image rm $(docker image ls -aq)
#Alternately, build and run in openshift/minishift from local source code
oc start-build myapp --from-dir=. --follow
oc expose svc/myapp --port 8080