Podman is a new, open-source, container engine that works seamlessly with containers as well as pods. This project is different because it doesn’t actually depend on a daemon(like Docker), but instead launches containers and pods as child processes. Podman is the CLI tool for interacting with libpod, a library that allows other tools to manage pods and containers.
Before diving into the tutorial, let’s look at the key features of Podman.
setuid
binary. When run without root, containers use user namespaces to set root in the container to the user running Podman.docker-compose
but Podman allows the creation and execution of Pods from a Kubernetes YAML file.Now that we have learned what Podman can do and what not, we will dive into a simple tutorial of running an Nginx container using Podman.
I’m using Ubuntu 18.04 for this tutorial,libpod
the package is being worked on for inclusion in the default Debian/Ubuntu repos.
Meanwhile use the below command to install
. /etc/os-release sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${NAME}_${VERSION_ID}/Release.key -O Release.key sudo apt-key add - < Release.key sudo apt-get update -qq sudo apt-get -qq -y install podman sudo mkdir -p /etc/containers echo -e "[registries.search]\nregistries = ['docker.io', 'quay.io']" | sudo tee /etc/containers/registries.conf
Let’s deploy a container that includes a webserver we can access. We’ll use the official NGINX image and deploy it with the below command.
podman run -d nginx:latest
Once the container is deployed, use ps
command to check what containers are running.
Now that containers are running, we can launch lynx a terminal-based web browser to access the Nginx application using the following command.
lynx <IP-Address>:80
Congrats! We have learned the basics of installing and using Podman.
Like this post? Don’t forget to share it!
There are few things as valuable to a business as well-designed software. Organizations today rely…
The cryptocurrency industry is being reshaped by the fusion of blockchain technology and artificial intelligence…
Introduction Artificial Intelligence (AI) has also found its relevance in graphic design and is quickly…
Imagine a world where the brilliance of Artificial Intelligence (AI) meets the unbreakable security of…
In today’s fast-paced digital landscape, automation is not just a luxury but a necessity for…
The world of casino gaming has leveraged the emerging technology advancements to create immersive and…
This website uses cookies.