How to install PrestoDB with Podman

In this article, we are going to learn how to install PrestoDB with Podman.

Presto is a high-performance, distributed SQL query engine for big data, its architecture allows users to query a variety of data sources such as Hadoop, AWS S3, Teradata, Cassandra, Kafka, etc. You can even query data from multiple sources within a single query.

Understanding Prestodb Concepts

Server Types

We have two types of servers, Workers and Coordinators.

Coordinator is a server responsible for parsing statements, planning, and managing Presto worker nodes. It’s a node to which a client connects in order to submit statements for execution.

Worker is responsible for executing tasks and processing data. Worker nodes fetch data from connectors and exchange intermediate data with each other. The coordinator is responsible for fetching results from the workers and returning the final results to the client.

Connector allows Presto to interact with a resource using a standard API.

Catalog contains schemas and references a data source via a connector. When addressing a table in Presto, the fully qualified table name is always rooted on the catalog.

Schema is a way to organize a table. Both catalog and schemas define a set of tables that can be queried.

Table is a set of unordered rows which are organized into named columns and types.


  • Make sure you have Podman up and running
  • Have any operating system running of your own
  • Have basic understanding of terminal

So to start with I am going to be using Rocky Linux as my chosen operating system. You can choose any which you are conversant with.

1. Run system updates

We need to ensure that our system repositories are up to date. On Rocky Linux terminal run system updates with the following command.

$ sudo dnf update -y

2. Install Podman on Rocky Linux

When updates are complete, proceed to install Podman. If you are running a Debian based system check this article on how to install Podman

How to install Podman 3 on Debian 11

Let me take you through the installation of Podman on Rocky Linux.

To install Podman use the following command;

$ sudo dnf install -y podman

This command will install Podman with all its dependencies.

Sample output will look like this


You can check your Podman version with this command

$ podman --version
podman version 3.3.1

3. Start Podman Container

To start Podman services, we need to start and enable podman service in our system which runs the container services. Use the below commands to do so.

$ sudo systemctl start podman
$ sudo systemctl enable podman

4. Pull Prestodb image

To run Podman images we are going to use podman run command to accomplish this, but first, we need to create a directory where we will store our Prestodb data

$ mkdir data
$ cd data

Now use podman run to get Presto image

$ podman run -d \
     --name nextgenprestodb \
     -p 8080:8080 \
     -v $(pwd):/data/db:Z \

Select the image to pull from

Please select an image: 
Trying to pull
Getting image source signatures
Copying blob 8b8a142162d2 done  
Copying blob 2b19b9881a49 done  
Copying blob b6411b120751 done  
Copying blob 0aa95afc0a74 done  
Copying blob 568624b43211 done  
Copying blob 930f129b845e done  
Copying blob e17b1de81e59 done  
Copying config c9b1b55401 done  
Writing manifest to image destination
Storing signatures

Let’s check our image with podman ps command

$ podman ps 

To access Prestodb from the browser use the following:

$ http://<your_IP_Address>:8080


We have successfully deploy Prestodb using Podman. If incase of any difficulty feel free to get in touch for assistance.

About Kipkoech Sang

I am a technology enthusiast who loves to share gained knowledge through offering daily tips as a way of empowering others. I am fan of Linux and all other things open source.
View all posts by Kipkoech Sang →

Leave a Reply

Your email address will not be published.