From the course: Kubernetes: Your First Project

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Building your image with Podman

Building your image with Podman - Kubernetes Tutorial

From the course: Kubernetes: Your First Project

Building your image with Podman

- [Narrator] Now that we've seen how container files work, let's use the podman CLI to build a container image from it. Before you begin, make sure that you're in the O3_03b branch. You can verify that you're in this branch by typing git branch --show-current. It should say O3_03b here. If it doesn't, just type git checkout O3_03b to go right into that branch. Now that we're here, we're going to type in podman build -t explorecalifornia.com . Let's explain what's going on here before we hit Enter and run this. build is one of the many sub commands available within the podman CLI. This one happens to build container images, hence its name. - t tells podman to give our container image a name, like explorecalifornia over here. While this option is optional, I highly recommend using it as it'll be really difficult to find the image that you created otherwise. The dot at the end is not a typo. This is the directory to provide to the builder as context. You can think of context as a file…

Contents