How to Install Dokku on Fedora Server Latest

Dokku is an open-source, cloud application platform that enables users to build, deploy, and manage applications on their own servers. In this tutorial, we will demonstrate how to install Dokku on a Fedora Server latest.

Prerequisites

Step 1: Update the System

Ensure your system is updated to the latest version;

dnf update -y

Step 2: Install Dokku Dependencies

Before we setup Dokku, we need to install the following dependencies:

dnf install -y git make curl software-properties-common ssh-client psmisc

Step 3: Install Docker

Dokku relies on Docker, so we need to install the Docker packages:

dnf install -y docker

Once the installation process is complete, start the Docker service and set it to start automatically on system boot:

systemctl start docker
systemctl enable docker

Step 4: Install Dokku

To install Dokku, run the following command in your terminal:

wget https://raw.githubusercontent.com/dokku/dokku/v0.24.7/bootstrap.sh
sudo DOKKU_TAG=v0.24.7 bash bootstrap.sh

This will download and run the Dokku bootstrap script that will automatically install the latest version of Dokku.

Once the installation is successfully completed, you should see this message:

Dokku installation complete. Please complete the following steps:

1. Create a new SSH key for dokku: ssh-keygen

2. Copy the SSH public key output by the previous command and paste it into the file:

    /home/dokku/.ssh/authorized_keys

3. Open a web browser to the following URL to complete your Dokku installation:

    http://<serverip>:2000

Step 4: Configure Dokku

Creating a New SSH Key for Dokku

Before launching Dokku, we need to create a new SSH key for it:

ssh-keygen

Dokku requires an SSH public key to be added into the /home/dokku/.ssh/authorized_keys file so that it can be used to authenticate requests.

Configuring Firewall

If you have an active firewall enabled on your server, you will need to allow inbound traffic to access the Dokku interface.

In this example, we will use firewall-cmd to open the required ports:

firewall-cmd --add-port=22/tcp --permanent
firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --add-port=2000/tcp --permanent
firewall-cmd --reload

Accessing Dokku Web Interface

Dokku is now installed and running. To verify it, open a web browser and navigate to:

http://<serverip>:2000

Conclusion

In this tutorial, we have demonstrated how to install Dokku on a Fedora Server latest. You can now follow the on-screen instructions to deploy your applications on the Dokku platform.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!