If you have used Docker, you must understand daemons, containers, and their functions. A daemon is a service that runs in the background when a container is already in use in any system. Podman is a free management tool for managing and creating containers without relying on any daemon such as Docker. Therefore, it has advantages in managing containers without the need for long-term backend services. Additionally, Podman does not require root-level permissions to be used. This guide discusses in detail how to install Podman on Ubuntu 24.
Update system
We first need to update the system and open the Terminal shell of Ubuntu 24. During both installation and upgrade processes, we need to use the command line. A simple way is to use Ubuntu's "apt" utility and prepend the "update" command with sudo permissions. This command updates system utilities and repositories to ensure that potential conflicts do not occur when new software and applications are installed. You can also perform system upgrades and updates if needed.
sudo apt update
Install Podman
After upgrading to Ubuntu 24 system, we can continue to install Podman. Installation using the "apt" tool is very convenient and is easy to find in the installation instructions. In order to force the installation of Podman, we can use the "-y" flag. So just run the following command to start the installation:
sudo apt install—y podman
Installing the Podman tool may take longer than a regular installation, so you will need to wait patiently until the installation is complete.
After waiting for some time, Podman will be installed and its symbolic links will be created, as shown in the output:
Verify installation
In order to confirm that the Podman tool is successfully installed and configured in the Ubuntu 24 system, we can use a simple version command to find the installed version of Podman.
Sudabodman-Version
To get information about the Podman tool installed in your terminal, you can also use the "info" command with sudo privileges as follows:
Sudo Podman info
Run containers through Podman
We can say that a container is a service that uses different images for processing. You can create containers or use ones already built in. So we have to pull the container out and run it on our end. To do this, we use the "Run" directive, the "-it" flag and the container name, i.e., hello world it will start pulling the container from its primary source and run it on our end.
Sudo Podman Run—it Hello—World
After executing this "Run" instruction, you will get the following output. You can see that this container is pulled from Docker's main source:
Now we can find all containers currently running on Ubuntu24. To do this, we use the Podman command with the "ps" option shown below. The output of this command shows that there are currently no working containers. We can use the "-a" flag in the same directive while finding all pulled containers. You can see that the output with the "-a" option shows information for one container.
- Several Boardman PS
- Sudo Boardman PS—A
Remove container
Just like adding a new container to the system, you can also use the Podman tool to remove any added container from the Ubuntu 24 system. You must use the "rm" option in the Podman command along with sudo permissions. Make sure to mention the container ID after the "rm" option in the same query. Containers with specific IDs will be permanently removed.
Sudo Podman rm 9bd8d19ef028
Using images via Podman
An image in a Podman environment is known as the set of instructions required to run a container service or application. Therefore, to run Podman containers we need a specific image. To list all available images on Ubuntu 24, you need to use the same Podman command, using the "images" keyword. It will display all the images available in the system, i.e. d2c94e258dcb.
Sudo Boardman Pictures
To get a new image for your Podman environment, you can run the "Pull" command with the name of the new image, i.e. "Debain", as shown in the attached image.
Sudo podman pull Debian
After using the image description again, you can see that the new image has been downloaded successfully.
Sudo Boardman Pictures
Create a container in Podman
Now that the image has been downloaded, we must run it to create a container with a user-defined name. To do this, Podman's "run" command will be executed with the "-dit" and "-name" flags, followed by the name of the container, i.e. "Debian-container", and the name of the image you just downloaded, i.e. "Debian" . You can also see it working in Podman after creating a container from a "Debian" image.
- Sudo Podman run—dit—name debian—container debian
- Several Boardman PS
To connect to a newly running container named "debian-container", you need to use Podman's "attach" command. You can work in this container.
Sudo Podman Attach Debian—Container
To get the version of a container, run the following command in this container:
Cat/etc/os—release
Now, to exit a container and prevent it from running, you must use the "exit" command, followed by the Podman "Stop" command, using the name of the specific container.
- exit
- sudo podman stop debian container
To start, stop and delete the Podman container, you can use the following commands in sequence:
- Sudo podman starts Debian-container
- sudo podman stop debian container
- Sudo Podman rm debian—container
You can remove the Podman image using the "RMI" option in the same "Remove" command.
sudo podman rmi debian
Boardman
Now it’s time to uninstall the Podman tool from your Ubuntu system using the “Remove” command. Using the "apt" utility is a must since we installed it with "apt".
Sudo apt remove Podman
in conclusion
This guide describes how to use containers and images through the Podman tool. We elaborate on the main differences between Podman and Docker services. After that, we detailed the easiest way to install Podman in Ubuntu 24 and pulled some containers and images. After that, we learned how to use containers using images and the steps to uninstall the Podman service.
The above is the detailed content of How to install Podman on Ubuntu 24.04. For more information, please follow other related articles on the PHP Chinese website!

Learn about Chrome Web Store and use it to easily find and add useful extensions to your Google Chrome browser. Detailed instructions for how to install and manage Chrome Web Store extensions are provided.

Sometimes Microsoft Word opens files in read-only mode, which prevents you from editing the documents. This article from php.cn mainly introduces several ways to solve the problem “Microsoft Word opens files in read-only mode”.

RTX 3060 drivers download, installation, and update are simple tasks. If you have a new graphics card - NVIDIA GeForce RTX 3060 Ti, updating or installing the proper graphics card driver for it is important. Let’s read this post and php.cn will show
![[Answers Got] Google Sites Sign in – What Is Google Sites? - MiniTool](https://img.php.cn/upload/article/001/242/473/174646357029132.png?x-oss-process=image/resize,p_40)
What is Google Sites? Google has developed a variety of products covering different fields. Just like Gmail, Calendar, Drive, Docs, Sheets, and Slides, Google Sites is one of them but not that kind of commonly used in daily life. But Google Sites is

Sony has released a new app Firmware updater for DualSense wireless controller to help its users to update the PS5 DualSense controller on PC. In this post, php.cn will show you how to update the PS5 DualSense controller on a PC using this new app.

When you lost your mobile phone, you want to find its location and ping a phone in some way; or if your children have a long time to leave home, you need to locate them and ping their phone. But what’s the bottom line of pinging a phone? And how to p

Windows is Windows 11 Enterprise N? What is the difference between Windows 11 Enterprise and Enterprise N? How to download Windows 11 Enterprise N ISO and install it on your PC? In this post from php.cn, you can find answers to these questions, and l

What should you do if you want to create your own Tiny11 – a Windows 11 lightweight version? Tiny11Builder can help you to build a light version of Windows 11 with the official Windows 11 ISO file. See this post from php.cn and you can find much info


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 Mac version
God-level code editing software (SublimeText3)

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software
