The Docker daemon is a service that runs on your host operating system. The Docker client is used to issue commands and communicate with the daemon.

The Docker client can reside on the same host as the daemon.

Procedure

  1. Configure the Docker daemon in a file, daemon.json, for example:
    vi /etc/docker/daemon.json
    {
    "graph":"/data/mydocker"
    }
  2. Run the following commands to install and enable Docker:
    yum install -y wget
    wget -qO- https://get.docker.com | sh
    systemctl start docker
    systemctl enable docker
    service firewalld stop