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.
Launching Containers using Podman and Libpod
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.
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
Because these containers are not running via Docker, they will not be viewable via the Docker CLI.
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