Book Image

Wildfly Cookbook

Book Image

Wildfly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  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 command:

    $ sudo systemctl enable docker
    Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
  4. Also, ensure that your user is in the docker group, by executing the following:

    $ groups
    luigi wheel docker
  5. In case the docker group is not listed, add it with the following command...