Create dotnet core 5 supported Jenkins with Docker
What is Docker
Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.
Jenkins
Jenkins is an open source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery.
Dotnet Core 5
.NET is a free and open-source, managed computer software framework for Windows, Linux, and macOS operating systems. It is a cross-platform successor to .NET Framework.
Yes you can use dotnet core with Linux based operating systems.
Here is a quick example about it
docker build -t jenkins-dotnetcore5 .docker run -dp 8082:8080 jenkins-dotnetcore5
docker container exec \
[CONTAINER ID or NAME] \
sh -c "cat /var/jenkins_home/secrets/initialAdminPassword"
Do not forget to follow me :)