• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Tech News
  • Health
  • Home Decor
  • Travel
  • Lifestyle
  • Entertainment
  • Food
Sync Tech

Sync Tech

Daily Trending Blogs

You are here: Home / Tech News / How to install the Podman container engine on CentOS 8

How to install the Podman container engine on CentOS 8

January 3, 2020 by Aziz Yacine

[ad_1]

If you use either Red Hat or CentOS to deploy your containers, you’ll want to get up to speed with Podman.

How to install the Podman container engine on CentOS 8
If you use either Red Hat or CentOS to deploy your containers, you’ll want to get up to speed with Podman.
centoshero

Now that official support for the Docker container runtime has been dropped by RHEL 8/CentOS 8, what are container admins to do? Fortunately, the developers at Red Hat have been working on libpod for some time. Libpod is the new container management library, which includes everything necessary to manage pods, containers, and container images.

That new solution is called Podman which functions without requiring a container daemon, as all containers and pods are created as child processes. To everyone who has spent weeks, months, and years getting up to speed with the docker runtime, you have nothing to fear as the Podman CLI is based on the docker CLI.

I want to walk you through the steps for installing and using Podman on CentOS 8. 

SEE: Serverless computing: A guide for IT leaders (TechRepublic Premium)

Contents

  • What you’ll need
  • How to install Podman
  • How to use Podman
  • Cloud Insights Newsletter
  • Also see
  • Related

What you’ll need

The only things you’ll need to make this work are:

How to install Podman

Podman doesn’t have its own installation package, because it is a part of another tool. So to gain access to Podman, open a terminal window on your CentOS 8 server and issue the command:

sudo dnf install @container-tools -y

That’s all there is to the installation.

How to use Podman

Let me show you how similar to Docker Podman is. Say, for instance you want to pull an image. If you’ve used the Docker pull command, you’ll recognize:

podman pull ubuntu

To list your existing images, issue the command:

podman images

The above command will list out all of the images you’ve pulled, along with the image ID.

To delete an image, you can do so using the image ID, just like you do with the Docker runtime. Issue the command:

podman rmi ID

Where ID is the ID of the image to be deleted.

Now, let’s say you want to deploy a container using the newly-downloaded Ubuntu image. I’m going to demonstrate an incredibly basic container deployment, one that will deploy a container based on the Ubuntu image and then use the echo command from within the container to print out the message, “Welcome to TechRepublic.” 

To deploy this container with Podman, issue the command:

podman run --rm ubuntu /bin/echo "Welcome to TechRepublic."

You should almost immediately see the text printed out (Figure A).

Figure A

podmane-2.jpg

Our container was deployed.

Of course, that container isn’t going to do you much good. Let’s deploy a container that routes external port 8080 to internal port 8080. This can be done with the command:

sudo podman run -dit --name ubuntu-apache -p 8080:8080 ubuntu

We have to run this command with sudo as port bindings are not yet supported by rootless containers. 

To list your running containers you will have to, again, make use of sudo like so:

sudo podman ps

The above command will list out your running containers (Figure B).

Figure B

podmang.jpg

To stop that container, issue the command:

sudo podman stop ID

Where ID is the name of the container ID.

To delete the now stopped container, issue the command:

sudo podmand rm ID

Where ID is the name of the container ID.

And that’s the gist of installing and using the new container runtime engine, Podman. Stay tuned for more how-tos centered around this new technology.

article NLSthumb

Cloud Insights Newsletter

Your go-to knowledge base for the latest about AWS, Microsoft Azure, Google Cloud Platform, Docker, SaaS, IaaS, cloud security, containers, the public cloud, the hybrid cloud, the industry cloud, and much more.
Delivered Mondays



Sign up today

Also see

container.jpg

Image: CentOS

[ad_2]

Related

Filed Under: Tech News

Primary Sidebar

More to See

Payroll Management

Payroll Management Service for Your Business

May 21, 2020 By Aziz Yacine

All businesses with employees run a type of payroll to get their staff paid. Rather than handling it all alone or outsourcing the task, a significant number of the present companies choose an online payroll service to make this procedure easier and increasingly convenient. Payroll software for businesses is a cost-effective solution if your organization […]

Learn and Improve Memory

9 Surefire Ways To Improve Your Learning And Memory

May 21, 2020 By Aziz Yacine

Have you ever walked into a room and forgot what you went in for? Does Miss place your car keys?  All of us have been in this situation and perhaps wished that we had a sharper memory. Luckily, there are various ways that you can adopt to improve your learning skills and memory. Let’s take […]

AI and IoT

A Practical Approach to Emerging Tech for SMBs: AI and IoT

May 19, 2020 By Aziz Yacine

In contemporary times, owners of small businesses are the forerunners among the SMBs when it comes down to adopting and benefitting from the latest technology. Whether its automation of customer support or CRM, search engine optimization, (SEO), or a dedicated emailing platform, SMBs have in their disposition the best of techniques that can be optimally […]

VoIP for Business

10 Amazing Benefits of Using VoIP for Business

May 18, 2020 By Aziz Yacine

Integrating the latest communication advancements in business has become very important to ensure its success. These advancements ease managing various operations and prove to be more cost-effective than the traditional methods in the long run. One such advancement is VoIP. The technology of Voice Over Internet Protocol, abbreviated as VoIP, makes use of the Internet […]

Places to visit in Mumbai

Places to visit in Mumbai after Lockdown

May 15, 2020 By Aziz Yacine

With a series of lockdowns due to the coronavirus Pandemic, everyone is forced to go back to their homes. Even Mumbai – the city that never sleeps has become silent due to the COVID 19 Pandemic. While we stay at our homes for safety, all the explorers and travelers have the question – Will we […]

PHP Developers

Excellent Reasons Why You Should Choose PHP for Web APP Development

May 13, 2020 By Aziz Yacine

Every product owner aims to create an application that is not just dynamic, but satisfies every need of a product owner as well as the audience. The right application manages to work smoothly, perform highly, and engage its users. However, an app like that is the end goal goal of every entrepreneur, but the right application […]

Footer

Quick Links

Home
Contact us
Disclaimer
Terms & Condition
Privacy Policy
GDPR
Sitemap

Recent

  • Car Problems And Resolving The Car Problems From The Best Technicians
  • THINGS TO REMEMBER BEFORE BUYING GEMSTONES ONLINE
  • Thinking about BUY YOUTUBE SUBSCRIBERS?
  • Top 10 fastest cars of world
  • Biggest Companies of India List 2020 Should Read

Copyright © 2021 · Sync Tech