Setting up the Docker environment

In this recipe, you will learn how to install Docker and get acquainted with the basic commands. You will see how to create and build an image based on Fedora, and how you can run it.

Getting ready

We will need to have access to the Internet in order to download and install Docker and its dependencies.

How to do it…

  1. To install Docker on Fedora, issue the following commands:
    $ sudo yum -y remove docker
    $ sudo yum -y install docker-io

    The installation should look like the following screenshot:

    How to do it…
  2. Okay, now that Docker is installed, let's run it:
    $ sudo systemctl start docker
  3. If you want to start Docker at boot time, use the following ...

Get WildFly Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.