Installing Docker

This section provides information on installing Docker.

About this task

All commands provided require running as ROOT or SUDO access. If not running as root user, preface all commands with sudo.

Procedure

  1. Before installing Docker Compose, make sure Docker Engine is installed either locally or remote, depending on the environment. On Linux systems, install the Docker Engine for your OS provided in Install Docker Engine documentation. If you are following the Docker documentation to install the Docker Engine, docker-compose must also be installed.
    The following is an example of the install Docker Engine on CentrOS based on Docker documentation to support docker-compose commands used when installing Sametime. The example is for demostration only.
    Note: CentOS ships with Docker installed, but not the most recent which is required. Install Docker version 9.03.13 or higher.
    1. Uninstall old versions using the yum remove command provided in the Docker Engine documentation.
    2. Install Docker Engine using a repository. First, install the yum-utils package which provides the yum-config-manager utility.
      sudo yum install -y yum-utils 
      Then set up the stable repository.
      sudo yum-config-manager \ 
          --add-repo \ 
      https://download.docker.com/linux/centos/docker-ce.repo
    3. Install the latest version of Docker Engine and container.
      yum install docker-ce docker-ce-cli containerd.io 

      At this point, Docker is installed but might not be started.

    4. Start Docker.
      systemctl start docker 
    5. Verify that Docker Engine is installed correctly by running the hello-world image.
      docker run hello-world 
    Note: If you right click links like Install Docker Compose and choose Open link in Tab you can complete these tasks and then close that tab to start the next step.
  2. Install Docker Compose following steps and commands provided in Install Docker Compose topic in the Docker documentation. Docker Compose 1.29 or higher is required.
    The following is an example of the install Docker Engine on CentrOS based on Docker documentation. The example is for demostration only.
    1. Install Compose on Linux systems.
      curl -L "https://github.com/docker/compose/releases/download/1.29.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 
      
    2. Apply executable permissions to the binary.
      chmod +x /usr/local/bin/docker-compose 
    3. Test the installation.
      docker-compose --version 
  3. After the install is complete, use the following Linux shell command to confirm that Docker is running, which returns the docker information.
    docker info
    If Docker is not running, an error message is displayed indicating that a connection to Docker cannot be completed.

    To start the Docker service, run the following command.

    service docker start