Open In App

How to Install Docker on Fedora?

Last Updated : 17 Apr, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

The Fedora or Fedora Code is an important Linux distribution used by the Linux Kernel. The Installation of Docker on Fedora gains second most popularity after having it on the CentOS. However, steps to install Docker on Fedora neither too complicated nor too easy for an individual.

This article is intended to discuss the process of Installing Docker on Fedora with some simple commands without having any issues.

How to Install Docker on Fedora?

To Get Docker on Fedora, the best guideline is at your fingertip. We will start with the installation process followed by the Configuration of Docker.

Prerequisites

  • Fedora 39 to install Docker, but Fedora 38 is also compatible with Docker installation.
  • Sudo Rights
  • Active Internet Connectivity

Steps to Install Docker on Fedora

Step 1: Execute the following command on the Terminal to update all the necessary packages on the device.

sudo dnf update

1--Update

Step 2: Now, the following command will be used to make ready the Fedora Dependencies to download the Docker Files.

sudo dnf -y install dnf-plugins-core

2--Dependencies

Step 3: Now, the repository will be used to Download Docker Application on Fedora. It will not take much time to complete the process.

sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo

3--Repository

Step 4: Now, it is time to Install Docker on Terminal. To do so, the following command will be used. It will take some time to complete the process.

sudo dnf install docker

4--Install-Docker

How to Verify & Start Docker Service on Fedora?

Step 1: After installation of Docker, the Docker Service should be started. Otherwise, even the version will not be available. To start the service, the following command will be used.

sudo systemctl start docker

5--Start-Service

Step 2: At last, as the entire configuration is completed, the version of the installed Docker can be checked with the following command.

docker --version

6--Verify

As we can see from the above discussion, the Red Hat Fedora Docker Installation is not a complicated task. It is the work of a few commands that should be executed correctly, To Configure Docker on Fedora, the best way to copy the command & directly paste it on the Fedora Terminal.

Also Read

How to Install Docker on Fedora – FAQs

How to install Docker on Fedora?

To install Docker on Fedora, the following guidelines would be thoroughly used.

  1. Open Fedora Terminal.
  2. Execute the command sudo dnf update
  3. Run the command sudo dnf -y install dnf-plugins-core
  4. Again execute the command sudo dnf config-manager –add-repo https://download.docker.com/linux/fedora/docker-ce.repo
  5. To install execute the command sudo dnf install docker

How can I start the Docker Service on Fedora?

After installation of the Docker on Fedora, the Docker Service doesn’t get started automatically. Manually, the user should start the service, For this purpose, execute the command sudo systemctl start docker. It will not provide the output, but the service will be set.

What is the Docker Version checking command on Fedora Terminal?

The command docker –version should’ve been used to check the installed version. However, before checking the version, the Docker Service should be started on the device. Otherwise, it will prompt the error message on the Fedora Terminal.


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads