How to Install Docker on Fedora 28

Welcome to Fedora tutorial. Today, we are going to show you how to install Docker on Fedora 28. For end users, Docker provides an easy access to thousands of open source projects varying from databases, development tool, web server and many more. As a GIS, I can easily deploy a PostGIS server on my docker container.

Steps to Install Docker on Fedora 28

This tutorial applies to Fedora 28. But, you may try the same way on previous Fedora 27 and Fedora 26. The following steps will install Docker Community Edition. We need to make sure there is no old version of Docker installed on our system. If exist, we need to remove it first. Use this command to remove any previous version of Docker.

dnf remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine

Now, let’s add the Docker repository on Fedora 28

dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo

Now, let’s install Docker with this command

dnf install docker-ce

After the installation finishes, let’s start and enable Docker 

systemctl start docker
systemctl enable docker

Done. You can now check Docker version and start using it

docker version

Output example:

[root@localhost ~]# docker version
Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:25:02 2018
OS/Arch: linux/amd64
Experimental: false

Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:26:30 2018
OS/Arch: linux/amd64
Experimental: false

Admin

Leave a Reply

Your email address will not be published. Required fields are marked *