FedoraRHEL Based

How To Install Portainer on Fedora 38

Install Portainer on Fedora 38

In this tutorial, we will show you how to install Portainer on Fedora 38. In the dynamic world of containerization, where speed and efficiency are paramount, tools like Portainer emerge as invaluable assets. Portainer is a user-friendly, open-source container management platform that simplifies the complexities of Docker, making it accessible to users of all expertise levels.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Portainer on a Fedora 38.

Prerequisites

  • A server running one of the following operating systems: Fedora 38.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies for Portainer.
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.
  • Portainer relies on Docker, so it’s crucial that you have Docker installed on your Fedora 38 system.

Install Portainer on Fedora 38

Step 1. Before we can install Portainer on Fedora 38, it’s important to ensure that our system is up-to-date with the latest packages. This will ensure that we have access to the latest features and bug fixes and that we can install Portainer without any issues:

sudo dnf update

Step 2. Installing Portainer on Fedora 38.

Portainer is available as a Docker image on the Docker Hub. To acquire the Portainer image, utilize the following command:

sudo docker pull portainer/portainer-ce

This command fetches the Portainer Community Edition (CE) image to your system.

To enable effective communication for Portainer, create a dedicated Docker network using the following command:

sudo docker network create portainer-net
Portainer needs a dedicated data volume to persistently store its data. Create a Docker volume by executing this command:
sudo docker volume create portainer_data
This volume ensures that your Portainer settings and data remain intact even if the container is recreated.
Now, it’s time to run Portainer in a Docker container. Execute the following command to start Portainer:
sudo docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

Let’s break down this command:

  • -d: Runs the container in detached mode, allowing it to operate in the background.
  • -p 9000:9000: Maps port 9000 from your host to the container, making Portainer accessible via a web browser.
  • --name=portainer: Assigns the container the name “portainer” for easy management.
  • --restart=always: Instructs Docker to restart the Portainer container automatically in case of system reboots.
  • -v /var/run/docker.sock:/var/run/docker.sock: Grants Portainer access to the Docker socket, enabling it to manage Docker resources.
  • -v portainer_data:/data: Connects the previously created data volume to store Portainer data.

Step 3. Accessing Portainer Web Interface.

Simply open your web browser and navigate to http://<your_server_ip>:9000. You’ll be welcomed by the Portainer login screen.

Install Portainer on Fedora 38

On your first visit, you’ll be prompted to set up an admin password. Choose a robust and secure password, then click “Create User.”

After successfully creating an admin user, log in with the provided credentials. You are now ready to navigate the Portainer dashboard.

Congratulations! You have successfully installed Portainer. Thanks for using this tutorial for installing Portainer on your Fedora 38 system. For additional help or useful information, we recommend you check the official Portainer website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button