© Sean Whitesell, Rob Richardson, Matthew D. Groves 2022
S. Whitesell et al.Pro Microservices in .NET 6https://doi.org/10.1007/978-1-4842-7833-8_8

8. Containerization

Sean Whitesell1  , Rob Richardson2 and Matthew D. Groves3
(1)
KIEFER, OK, USA
(2)
Gilbert, AZ, USA
(3)
Grove City,, OH, USA
 

Containers and containerization are not, strictly speaking, necessary when building microservices. However, there are many benefits in using containers. In this chapter, we’ll take an introductory look at two popular tools for building and orchestrating containers: Docker and Kubernetes (respectively). We’ll build a Docker image, share it on Docker Hub, and then learn how to deploy it to AKS (Azure Kubernetes Service) with Kubernetes.

Why Containers?

A container is a ...

Get Pro Microservices in .NET 6: With Examples Using ASP.NET Core 6, MassTransit, and Kubernetes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.