Introduction to Container Management
Ubuntu
What is Podman?
Podman is an open-source, Linux-native container engine used to develop, manage, and run OCI (Open Container Initiative) containers on your system. Built as part of the libpod library, it allows developers and system administrators to package applications together with all their required files so they run smoothly in any environment. Because it uses standard container images, it works cleanly with images from popular registries like Docker Hub.
One of the biggest advantages of Podman is its daemonless architecture. Unlike traditional container tools that require a background service (daemon) running all the time with full administrator permissions, Podman runs containers directly as regular system processes. This design makes your system lighter, reduces potential security risks, and avoids a single point of failure.
Podman also supports rootless containers out of the box, which means you can pull images, start containers, and manage them as a normal non-root user. Its command-line structure is simple and easy to learn, and it uses familiar commands for pulling, running, stopping, and removing containers. You only need administrator (sudo) privileges during the initial installation, making everyday container management both safe and convenient.
Prerequisites
- A computer or server running Ubuntu 20.10 or newer (such as Ubuntu 22.04 LTS or Ubuntu 24.04 LTS).
- A non-root user account with
sudoprivileges. - Access to the Ubuntu Terminal (command line).
- An active internet connection to download Podman packages and container images.
curlor a web browser installed on your machine to test your first running container.
Step-by-Step Installation
Update the Package List
sudo apt-get update
Install Podman
apt-get command:
sudo apt-get -y install podman
-y flag automatically confirms the installation prompts.
Verify the Installation
info command as a normal non-root user:
podman info
podman --help
Pull a Sample Container Image
httpd) image to test your setup. Use the full image name (docker.io/library/httpd) so Podman downloads it from the exact registry you want:
podman pull docker.io/library/httpd
podman images
Run Your First Container
-d) so it runs in the background, and forward port 8080 on your host machine to port 80 inside the container:
podman run -d -p 8080:80/tcp docker.io/library/httpd
podman ps
Test the Running Container
curl on port 8080 (or open http://localhost:8080 in your web browser):
curl http://localhost:8080
It works!).
Stop and Remove the Container
-l (--latest) flag:
podman stop -l
podman rm -l
podman ps -a
CTCservers Recommended Tutorials
Web, Network
Step-by-Step Guide: Install AMD ROCm on Ubuntu with RX 6600 GPU
Learn how to quickly and easily set up AMD ROCm on Ubuntu for your RX 6600 GPU, enabling powerful machine learning, AI workloads, and GPU-accelerated computing right on your system.
Web, Network, Linux, Mysql, Ubuntu
LAMP Setup Guide 2026: Ubuntu & Debian | CTCservers
Install a secure LAMP stack on Debian or Ubuntu. Follow our step-by-step guide to configure Linux, Apache, MySQL, and PHP for your web server.
Web, Network, Ubuntu
Deploy Phi-3 with Ollama on Ubuntu GPU | CTCservers
Learn how to easily deploy the Phi-3 LLM on an Ubuntu 24.04 GPU server using Ollama and WebUI. Follow our step-by-step tutorial for seamless AI hosting.
Discover CTCservers Dedicated Server Locations
CTCservers servers are available around the world, providing diverse options for hosting websites. Each region offers unique advantages, making it easier to choose a location that best suits your specific hosting needs.