 Building images, we know that our pod contains a container and this container comes from a container image and this container image contains our workload. So it's a pretty important piece of our pod. Let's see together how we can build such an image. So what I've got here is a pretty simple application, a spring boot application. And before I start building my container image, I first need to build the project itself. Since it's a Maven project, I can just get Maven clear package and that will build the drawer file, the runnable drawer file. Okay, I'm done. It's built. Now I'm ready to build my container image. And what do I need for that? Well, I need two things. I need to have Docker running on my machine and I need a file called Dockerfile. Dockerfile is a file that describes how to build my container image and which commands needs to be run when I start my container. Let's take a look at our Dockerfile here. It's a pretty simple one. It always starts with the keyword from that specifies our base image. Here we are using an OpenGDK base image. So I'm sure I have a GDK. I need that for my jar file. I set some environment variables. I copy my jar file to my work here inside the container. I expose the board and finally the CMD command that specifies which command will be run when I start my container. Okay, so now I can do Docker build and then I specify a tag. In this case, I always start here with the username of my Docker username, for instance. And then I give it the name I want, boot demo version one and there we go. Last thing not to forget, the ending dot to say we're working in the current directory and that will build my container image. Successfully built, successfully tagged. Okay. Remember, my Docker container image is only in my local registry for now. I will need to push it to a public or an internal registry that is accessible by my Kubernetes cluster. But before that, let's try to run it. I can do that by doing Docker run dash IT for interactive terminal. Let's remove it when we're done. I give it a name and then I specify the tag. There we go. I look at this. I got my container running. That's all I wanted to show. Remember, if you want to be able to run this container image from your pods, you need to push it to registry to just do that by Docker push specifying the tag name and it will push that to your public registry. Thank you. Thanks for watching. Don't forget to like this video and to subscribe to the channel.