eBook .NET 4 L4 Deploying Web Application With Docker
eBook .NET 4 L4 Deploying Web Application With Docker
Course(s):
First Bank wants to use Docker to deploy all of their web applications.
Joe's manager has asked him to build a simple two-page web interface
in ASP.NET and set up a docker container to deploy the application on
it.
Duration: 15 min.
Problem Statement:
Demonstrate the building of an image and running it as a container.
Assisted Practice: Guidelines to Build an Image and Run It as a Container
Docker is a containerization platform that packages an application and all its dependencies in the form of
containers.
Features of Docker:
Allows an application to be
independent of its environment
Applications of Docker
Simplification of
configuration Multi-tenancy
Docker Container
01 Create
02 Run
04 Start
Stop
Restart
Kill
Docker Commands
docker image build Build an image from a Dockerfile docker image build [OPTIONS] PATH |
URL | -
docker build Build an image from a Dockerfile docker build [OPTIONS] PATH | URL | -
docker image rm Remove one or more images docker image rm [OPTIONS] IMAGE
[IMAGE...]
Docker Commands
docker image prune Remove unused images docker image prune [OPTIONS]
docker kill Kill one or more running docker kill [OPTIONS] CONTAINER
containers [CONTAINER...]
docker rmi Remove one or more images docker rmi [OPTIONS] IMAGE
[IMAGE...]
docker stop Stop one or more running docker stop [OPTIONS] CONTAINER
containers [CONTAINER...]
Docker Hub is a cloud-based repository used to create, test, store, and distribute container images.
Duration: 10 min.
Problem Statement:
Demonstrate how an image is tagged before pushing.
Assisted Practice: Guidelines to Demonstrate Image Tagging Before Pushing
Duration: 20 min.
Problem Statement:
Demonstrate how an image is pushed into Docker Hub.
Assisted Practice: Guidelines to Push an Image Into Docker Hub
Duration: 20 min.
Problem Statement:
Demonstrate how an image is pulled from Docker Hub.
Assisted Practice: Guidelines to Pull an Image From Docker Hub
Docker Swarm is the scheduling and clustering tool for Docker containers.
Containers
Swarm
Hosts
Functions of Docker Swarm
Swarm
Manager
A cluster of Docker nodes can be established and managed as a single virtual system.
Load balancing
A Docker Service is created to deploy an image of an application when the Docker Engine is in Swarm
mode. A service is an image of a microservice of the the application.
A database
While creating a Docker Service, the container image that is to be used and the commands to be executed
inside the running containers have to be specified.
Port where the service is available outside the Overlay network to connect other Services in
Swarm the Swarm
Duration: 15 min.
Problem Statement:
Demonstrate how an app is scaled to run on multiple containers.
Assisted Practice: Guidelines to Scale an App to Run on Multiple Containers
Duration: 15 min.
Problem Statement:
Demonstrate how an app is deployed to production.
Assisted Practice: Guidelines to Deploy an App to Production
Duration: 15 min.
Problem Statement:
Demonstrate the setting up of Jenkins pipeline.
Assisted Practice: Guidelines to Set Up Jenkins Pipeline
Docker Compose is used to define and run multi-container docker applications as a single service.
Compose works on production, staging, development, testing, and continuous integration workflow
environments.
Create a directory for the project and create ‘.py’ file in the project
directory
Runs on multiple platforms - Windows, Mac, Azure, AWS, CentOS, Debian, Fedora, and
Ubuntu
Features of Docker CE
Duration: 20 min.
Problem Statement:
Demonstrate the functionalities of Docker CE.
Assisted Practice: Guidelines to Demonstrate the Functionalities of Docker CE
Duration: 30 min.
Problem Statement:
First Bank is planning to use Docker to deploy all their web applications.
Build an ASP.NET website comprising of two pages and set up a docker
container to deploy the application on it.
Course:
1. Learning ELK Stack 6.0
2. Microsoft Azure Fundamental Training