Essential Docker Commands
The following are the some of the essential docker commands:
1. docker build
- The following command is used for building an image from a Dockerfile
docker build -t my-img .
2. docker run
- The following command is used for creating and starting a container from an image.
docker run -d -p 8080:80 my-img
3. docker ps
- The following command helps in listing the running containers
docker ps
4. docker images
- The following command is used for listing the docker images.
docker images
5. docker stop
- The following command is used to stop a running docker container:
docker stop container_name
- To know more about essential docker commands, refer this – Article
Docker – Setting ASP.NET
Microsoft’s leading web development framework for constructing server-side applications is ASP.Net. Docker has assured that it supports ASP.Net because it has been around for a long time for development.
Table of Content
- What is .NET Application?
- Why is containerizing a .NET application is important?
- What are ASP.NET Core Docker Images?
- How to Setup and Execute .NET Applications in Docker?
- How to Installing the ASP.Net Container in Windows?
- Usage of .dockerignore
- How to Create Dockerfile?
- How to optimize your Dockerfile for dotnet restore?
- How to use Multi-Stage Build?
- How to Create a Docker Container?
- Essential Docker Commands
- How to Clean up Resources?
- Adding Healthchecks to your Containers
- Choosing Appropriate Isolation Mode for Windows Containers
- How to Run Linux and Windows Containers?
- How to Build and Deploy a Dockerfile?
- Containerize ASP.NET Applications – FAQs