MicroHost

MicroHost

Did You Know?

How Can We Help?

Special Offer

Deploy your Cloud Server now and get $100 in Free Credits!

Get Started

How To Install Docker on Fedora

Table of Content
How To Install Docker on Fedora

Introduction

In this article, you will learn how to install Docker on Fedora.

Docker is a platform that is open source and allows developers to build, deploy, run, update, and manage containers. Containers are standardised, executable components that combine application source code with the operating system (OS) libraries and dependencies necessary to run that code in any environment. Docker enables developers to do all of these things.

Containers make it easier to design and deliver applications that run on distributed systems. As more and more businesses move their operations to cloud-native development and hybrid multicloud environments, their adoption rates have increased significantly. Developers have the ability to create containers even without the use of Docker by cooperating directly with features that are pre-installed in Linux and other operating systems. Docker, on the other hand, makes containerization more quickly, easily, and securely.

Step 1: Update the system

The first step you need to do is get the repositories up to date. To accomplish this, use the following command:

[console]# dnf update -y[/console]

Step 2: Enable Docker CE Official Repository

[console]# dnf -y install dnf-plugins-core[/console]

[console]# dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo[/console]

Step 3: Install Docker and its Dependencies

[console]# dnf install -y docker-ce docker-ce-cli containerd.io[/console]

Step 4: Manage Docker Service

[console]# systemctl start docker[/console]

[console]# systemctl enable docker[/console]

[console]# systemctl restart docker[/console]

[console]# systemctl status docker[/console]

command output

Step 5: Confirm that Docker is installed

Execute the following command to check that Docker has successfully installed:

[console]# docker version[/console]

output

Step 6: Test Docker

In order to evaluate Docker, we will obtain a 'hello-world' image from the Docker Hub repository. A container will be formed from the image that shows a "Hello world" message on the terminal along with the steps of what just transpired after the command has been done. This will take place after the image has been loaded.

[console]# docker run hello-world[/console]

command output

Execute the following command to verify the photos that are currently stored on the system:

[console]# docker images[/console]

output

conclusion

Hopefully, you have learned how to install Docker on Fedora.

Thank You 🙂

Special Offer

Deploy your Cloud Server now and get $100 in Free Credits!

Get Started
Table of Contents