Back to blog
Jul 01, 2024
2 min read

How to install Docker on Fedora

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers.

What is Docker?

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow developers to package an application with all of its dependencies, including libraries and other configuration files, into a standardized unit for software development.

Benefits of Using Docker

  • Consistency: Ensures that applications run the same way across different environments.
  • Portability: Containers can run on any system that supports Docker, regardless of the underlying infrastructure.
  • Efficiency: Containers are lightweight and use fewer resources compared to traditional virtual machines.
  • Rapid deployment: Containers can be quickly created, started, and stopped.
  • Isolation: Applications and their dependencies are packaged together, reducing conflicts between different projects.

Let’s start to install Docker

  1. Update and Upgrade Fedora System

img01 img02

  1. Install Required Packages
sudo dnf install dnf-plugins-core

img03

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

img04

  1. Install docker engine
sudo dnf install docker-ce docker-ce-cli containerd.io

img05 img06

5.Start and enable docker services

sudo systemctl start docker
sudo systemctl enable docker

img07

  1. Verify Installation
sudo systemctl status docker
sudo docker pull hello-world
sudo docker run hello-world

img08