Difficulty: Beginner
Estimated Time: 10 minutes

libpod - library for running OCI-based containers in Pods

libpod provides a library for applications looking to use the Container Pod concept popularized by Kubernetes. libpod also contains a tool called podman for managing Pods, Containers, and Container Images.

In this scenario you will learn how to use Podman to launch containerised processes via libpod.

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Launching Containers using Podman and Libpod

Step 1 of 3

Start Containers with Podman

Podman provides the ability to run containers via the LibPod project. LibPod provides a library for applications looking to use the Container Pod concept popularized by Kubernetes. By using Podman, it's possible to use the same runtime for running containers locally.

podman --help

The CLI for Podman is compatible with Docker, meaning it should feel familiar. The command below will launch a new container.

podman run -d --name http-noports katacoda/docker-http-server:latest

podman ps

Because these containers are not running via Docker, they will not be viewable via the Docker CLI.

docker ps

Libpod containers have the same principals in terms of configuration and security. If we wanted the ports to be accessible then we need to explicitly bind them.

podman run -d --name http -p 80:80 katacoda/docker-http-server:latest

curl localhost