2 Command line
This chapter covers
- The Podman command line
- Running an OCI application
- Differences between containers and images
- Building an OCI Based Image
Podman is an excellent tool for running and building containerized applications. In this chapter, you’ll get started by building a simple web application to demonstrate commonly used features of the Podman command line.
If you don’t have Podman installed on your machine, you can jump to appendix C, Getting Podman, and then return here. This chapter assumes that Podman 4.1 or newer is already installed. Older versions of Podman probably work fine, but all examples were tested with Podman 4.1.
The example base image I use is the registry.access.redhat.com/ubi8/httpd-24 image from Red Hat, my current employer.
Note
Universal Base Images (UBI) can be used anywhere, but container software that is maintained and vetted by Red Hat, and when run on a Red Hat based operating system, is fully supported. There are hundreds of Apache images which work similarly to this image, that you can also try out.