Introduction
Docker is an open-source platform that enables developers to build, deploy, run, update and manage containers and uses OS-level virtualization to deliver software in packages called containers. Docker is a tool used to automate the deployment of applications in lightweight containers so that applications can work efficiently in different environments. The software that hosts the containers is called Docker Engine.
In this article, we will explain to you how to install Docker-CE on Fedora 35
Install Docker-CE
- Update the package index.
# sudo dnf update
- Next, we need to install the required packages to run Docker CE.
# sudo dnf install -y dnf-plugins-core
- Add the Docker repository to the system and run the following command.
# sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
- Install Docker CE.
# sudo dnf install docker-ce docker-ce-cli containerd.io
Test the Docker installation
- After installing docker is completed, the first thing you will need to do is start the service.
# sudo systemctl start docker
- Enable the docker service.
# sudo systemctl enable docker
- Verify the status of the docker service.
# sudo systemctl status docker
Output
- Let's test the docker installation using the hello-world docker image. If your installation is successful you will be seeing the below output.
# sudo docker run hello-world
Output