How to Install Docker CE on Fedora 28

In this article, we are going to learn how to install Docker on Fedora 28. I am going to install the Docker Community Edition on my Fedora 28 Server. Docker is a great way to deploy applications. I have been using Docker container to deploy several apps such as PostgreSQL, MySQL, SQL Server on top of my Linux distribution. 

Steps to Install Docker on Fedora 28

Step 1. Remove previous Docker installation

It is recommended to check and remove any previous Docker installation. You can use this command below to remove old Docker version. 

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

Step 2. Add the Docker Repository

To add the official Docker repository to Fedora 28, use the following command

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

Please make sure that you run the command as root.

Step 3. Install Docker

Install Docker on Fedora 28 with this command

dnf install docker-ce

Step 4. Start and Enable Docker

Finally, start Docker service and enable it during system start

systemctl start docker
systemctl enable docker

At this point, Docker is ready for use. You can check the version with this command

docker version

Output

Client:
Version: 18.06.0-ce
API version: 1.38
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul 18 19:11:45 2018
OS/Arch: linux/amd64
Experimental: false

Server:
Engine:
Version: 18.06.0-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul 18 19:14:07 2018
OS/Arch: linux/amd64
Experimental: false

Thanks for reading, and see you in the next article. Cheers

1 Trackback / Pingback

  1. How to Install PostgreSQL Docker Containers on Fedora 28 | Manjaro dot site

Leave a Reply