How to install Docker on Fedora 31?

Windows Articles

How to increase privacy in Windows 10.

Hello! Without a doubt the time of use of electronic devices has increased lately. Indeed, with the limitations imposed by the COVID-19...

How to install Java 15 on OpenSUSE 15.2?

Recently Java 15 has been released with interesting new features in the accounting field and introducing many security patches. In spite of...

How to install Redis on CentOS 8?

Hello, friends in this post, we will show you how to install Redis on CentOS 8 As we well...

How to enable and disable startup applications in Windows 10

Hello! Windows 10 is an attractive and very easy to use system. However, some criticism has come for being too "heavy". That...

How to install Oracle Java 15 on Ubuntu 20.04 / 18.04?

Hello, friends. We know that Java is one of the most popular programming languages and now it's version 15. So in this...
angeloma
angeloma
Senior Writer and partner

If there is a system that is characterized by the incorporation of new features is Fedora Linux. This is because it wants to be a modern, safe and leading distribution in the collaboration of projects. This philosophy fits quite well with Docker because it is a powerful technology, innovative and above all useful for the administration of servers. So, in this context, this article will help you install Docker in Fedora 31.

Docker is a recent technology that allows the deployment of applications and programs in the form of containers. That is, as a kind of virtual machine but contained only for that application. In this blog, we have taught you how to install some applications using this methodology.

This is a great advantage at the time of deployment because we do not care about the dependencies they may have. On the other hand, Docker is very secure and by default isolates network processes and data between host and container. It is widely used among sysadmin and even developers.

Install Docker on Fedora 31?

Fedora 31 being so new, uses cgroups v2 by default and this is a problem with Docker because it doesn’t implement it yet. Then, to the steps that are indicated in the official documentation of Docker, it is necessary to add some new steps. Let’s go for it:

First let’s install Docker normally, for it opens a terminal session and executes the following command:

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

Then, once the Docker repository is configured, we proceed to install it with the following command:

:~$ sudo dnf install docker-ce
2.- Install Docker on Fedora 31
2.- Install Docker on Fedora 31

When the installation is complete, Docker will be installed.

You can configure Docker to run without root permissions. To do this, run the following commands:

:~$ sudo groupadd docker :$ sudo groupadd docker
:~$ sudo usermod -aG docker $USER

We will now make some changes to Fedora’s grub to adapt the system to Docker.

Edit the default grub configuration file:

:~$ sudo gedit /etc/default/grub

And in the line that starts with “GRUB_CMDLINE_LINUX“, the following parameter must be added: system.unified_cgroup_hierarchy=0.

Then save the changes and close the file.

To apply the changes you have to update the grub with the following command:

:~$ sudo grub2-mkconfig 

And finally, reboot the system.

When you start the system again, you can start and use docker. To start the service, just use the following command:

:~$ sudo systemctl start docker

And if you want it to start along with the system, add this other command:

:~$ sudo systemctl enable docker

And now, you can use Docker on Fedora 31.

Conclusion

Fedora is an excellent and innovative system, but sometimes being at the forefront means some inconvenience when installing certain programs. That is why for Docker to work perfectly, you have to take some extra steps. And you have learned that today.

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to increase privacy in Windows 10.

Hello! Without a doubt the time of use of electronic devices has increased lately. Indeed, with the limitations imposed by the COVID-19...

How to install Java 15 on OpenSUSE 15.2?

Recently Java 15 has been released with interesting new features in the accounting field and introducing many security patches. In spite of...

How to install Redis on CentOS 8?

Hello, friends in this post, we will show you how to install Redis on CentOS 8 As we well...

How to enable and disable startup applications in Windows 10

Hello! Windows 10 is an attractive and very easy to use system. However, some criticism has come for being too "heavy". That...

How to install Oracle Java 15 on Ubuntu 20.04 / 18.04?

Hello, friends. We know that Java is one of the most popular programming languages and now it's version 15. So in this...
x