The objective of this scenario is to demonstrate how to use Podman to create a pod and then add containers to the pod your created?
What you'll be doing
In this scenario you'll install Podman into an instance of the Katacoda interactive learning environment running the CentOS operating system. Then you'll create a pod and add two containers to that pod. Finally, you'll create a manifest file in YAML format the describes the pod you just created. That manifest file is consumable by Kubernetes.
- Step 1: Install Podman
- Step 2: Creating a Pod using Podman
- Step 3: Creating a Manifest File Using Podman
What is Podman?
According to podman.io:
"Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Containers Initiative (OCI) Containers and Container Images. Podman provides a command line interface (CLI) familiar to anyone who has used the Docker Container Engine. Most users can simply alias Docker to Podman (alias docker=podman) without any problems. Similar to other common Container Engines (Docker, CRI-O, containerd), Podman relies on an OCI compliant Container Runtime (runc, crun, runv, etc) to interface with the operating system and create the running containers. This makes the running containers created by Podman nearly indistinguishable from those created by any other common container engine."
In short, Podman is a container management technology that provides a good many features that go well beyond simply creating and destroying containers. In fact, you can use Podman to create a pod. A pod is a technique for organizing containers in a way that is similar to the way that Kubernetes organizes containers.
Executing command line instructions
This scenario is completely interactive. The instructions you'll be given will be executed directly in the terminal window that is embedded in the Katacoda interactive learning environment. When you see a command line instruction against a black background and check mark at the end, like so:
just click on it and the command will execute in the interactive terminal window.
Click the START SCENARIO button to start.
The Podman icon is a graphic link from Podman.io
Creating Pods Using Podman
To read the documentation go here.
The objective of this step is to install Podman into the Katacoda interactive learning environment.
Step 1: Install Podman.
sudo yum -y install podman
Step 2: Confirm the installation was successful by calling for the Podman version.
You'll get output simiar to the following:
Version: 1.6.4 RemoteAPI Version: 1 Go Version: go1.12.12 OS/Arch: linux/amd64
Step 3: Clear the screen before moving onto the next lesson
Next: Creating a pod using Podman