Docker For .NET Developers
Docker For .NET Developers
mukesh murugan
@iammukeshm
codewithmukesh
Imagine..
Imagine that you are all set with your new .NET
Application and ready to deploy it to higher
environments!
Everything is working as
expected on my
development machine!
Let’s deploy this thing!
mukesh murugan
@iammukeshm
codewithmukesh
mukesh murugan
@iammukeshm
codewithmukesh
mukesh murugan
@iammukeshm
codewithmukesh
mukesh murugan
@iammukeshm
codewithmukesh
The Solution?
We need a standardized way to package our .NET
application along with everything it needs to function,
in any environment.
mukesh murugan
@iammukeshm
codewithmukesh
Docker..
Docker essentially can package your application and
all its related dependencies into Docker Images.
These images can be pushed to a central repository,
for example, Docker Hub or Amazon Elastic
Container Registry, and can be run or any server!
mukesh murugan
@iammukeshm
codewithmukesh
mukesh murugan
@iammukeshm
codewithmukesh
Dockerfile
Here is a sample Dockerfile, which acts as instructions for Docker to build an
image from a .NET application.
It downloads the required .NET SDK (for build), copies all the project content
to a working directory, and publishes the required DLLs in Release mode. You
can also set the Environment variables for your application here.
You would have to have docker-desktop running on your machine, and this
dockerfile would sit right beside your .csproj file.
mukesh murugan
@iammukeshm
codewithmukesh
Basic Commands
To get started, ensure that you have docker-desktop downloaded and
running on your machine. Here are some important docker cli commands
that you must know.
mukesh murugan
@iammukeshm
codewithmukesh
mukesh murugan
@iammukeshm
codewithmukesh
WAS THIS
HELPFUL?
Share with a friend who needs it!
mukesh murugan
@iammukeshm