In this tutorial, you will learn how to install Docker in Fedora workstation 39.
Docker runs on any Linux distribution, including Fedora workstation 39.
Docker is one of the best solutions when it comes to running apps in containers, as you can run multiple containers without having to worry about containers conflicting with each other, as containers are isolated from each other and the system.
Docker can be easily installed in Fedora Workstation 39, by adding its repository in your system, and then using that repository to download Docker.
Step 1 - Update the system
Before installing the required packages, and adding Docker repository in our system, we need to update our Fedora machine to make sure that we won't face an issue during installation or after.
To update Fedora, you can do so by using dnf
package manager. To do so, simply run the command below.
sudo dnf update
Step 2 - Install dnf-plugins-core
Once you have updated your system, proceed to install the required package dnf-plugins-core
, you must have this package installed in your system before being able to add Docker repository in your system via the dnf
command.
To install dnf-plugins-core
, simply run the command below.
sudo dnf install dnf-plugins-core -y
Step 3 - Setup Docker repository
Next, proceed to setup Docker repository in your system.
Setting up Docker repository in Fedora workstation 39, is very simple. All you need to do is run the command below to do so.
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
Step 4 - Install Docker
Docker repository should be now active in your system, which means you should be able to use the newly added repository to download Docker.
Installing Docker is quite simple, and you can easily do so by running the command below.
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
Step 5 - Verify Docker Installation
Docker is now installed in your system. To confirm that Docker installation was completed without any issue, proceed to check Docker version.
docker --version
Step 6 - Start Docker
When you install Docker, you need to manually start Docker process after.
To start Docker process, you can do so by using the systemctl
command.
sudo systemctl start docker
Once you start docker process, you can check docker process status via the status
command.
sudo systemctl status docker
Also if you want docker to automatically start after you reboot your machine, then you need to enable docker process.
To do so, simply run the command below.
sudo systemctl enable docker
That's it! All you have to do now is install docker images on your Fedora system.
Conclusion
In this tutorial, you learned how to install Docker in Fedora workstation 39, via the official Docker repository.