So you want to take advantage of Docker. And why not? It’s one of the most game-changing pieces of software to be developed in recent years. With Docker you can enable your business to expand its technological offerings with the help of containers (encapsulated applications that are easily rolled out and updated). Thing is, you work with Fedora and not Ubuntu. Is it possible to install this amazing platform on a non-Ubuntu operating system? Of course it is. In fact, installing Docker is equally as simple on Fedora as it is on the more user-friendly Ubuntu.

Let me walk you through the process of installing Docker on the latest iteration of Fedora.

First things first

Before you dive into the installation of Docker, you need to make sure your Fedora platform is fully up to date. To do this, open up a terminal window and issue the command:

dnf upgrade

Once the upgrade completes (depending on how out of date it is, this could take some time), you are ready to install Docker. NOTE: If the kernel updates during the upgrade, you should probably reboot your system.

Now that your Fedora system is completely up to date, let’s install Docker. Here’s how:

  1. Open a terminal window
  2. Issue the command sudo dnf install docker
  3. Allow the installation to complete
  4. Start the Docker daemon with the command sudo systemctl start docker
  5. Enable Docker to run at startup with the command sudo systemctl enable docker

That’s all there is to it.

Testing the installation

Before you dive into deploying your own containers, let’s test the Docker installation with the tried-and-true Hello World. Back at the command line, issue the following:

sudo docker run hello-world

You should see similar output as found in Figure A.

Figure A

Searching for Docker images

Now that you’ve installed Docker and tested it with Hello World, you might want to pull and use a particular image. To do this, you will work with the search option, like so:

sudo docker search IMAGE

Where IMAGE is the image to be searched. Say, for example, you want to find out what WordPress images are available; issue the command:

sudo docker search wordpress

The above command will display all of the available WordPress images that can be pulled (Figure B).

Figure B

You can search for nearly any image with Docker.

sudo docker search debian
​sudo docker search ubuntu
​sudo docker search apache
​sudo docker search java

The list goes on and on.

When you find an image you want to run, do so with the command:

sudo docker run IMAGE

Where IMAGE is the name of the image in question.

The mystery removed

Docker is not nearly as challenging as some might assume; in fact, Docker is quite easy to use– regardless of platform. Now you know how to install this amazing bit of technology on the Fedora platform, all mystery removed.